Posts by Francianderson • 155 points
11 posts
-
1
votes1
answer123
viewsQ: Changing the xml by java
I was wondering if there’s a way I could change the layout="@layout/app_bar_main" of <include> by java <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout…
-
0
votes1
answer103
viewsQ: Várias Textview
I was wondering if there’s any way I can add a Textview to a layout in java. type I have an xml that has a Textview and in class Activity I use setContentView() to link the two, but I wanted to put…
-
0
votes1
answer172
viewsQ: How to Identify Carcter
I have a class who catches a String and look at the first character and if the character is empty (" ") it returns me the first letter. public String textReturn(String x){ int v1 = 0,v2 = 1; String…
-
0
votes1
answer210
viewsQ: How to change the location of the database
I’m creating a database like the SqlOpenHelper and I know that it saves the database in the folder date. I was wondering if there’s a way to move the location of the database to the sdcard for…
-
0
votes1
answer2562
viewsQ: findViewById(); with a variable within the method
Kind of: public void main(){ String a = "bt1"; Button bt1 = (Button) findViewById(R.id.a); } I know it doesn’t work, but it would be something like this, using a variable String.…
-
0
votes2
answers1165
viewsQ: Layout in Alertdialog
I have this AlertDialog that shows on the other screen layout , in that layout has several EditText and a Button. How can I get the sword text of each of the edittext when I click on ok or the…
-
8
votes0
answers437
viewsQ: How to change the color of the item in a listview
I have a listview which is adapted with a SimpleCursorAdapter and that within the listview has two textview, one with a number and one with a name. I wanted to do so... the listview shows in…
-
1
votes1
answer225
viewsQ: How do I limit the number of lines in a listview
I have a listview that is adapted with a cursoradapter ...it selects everything from the database and adapt in my listview .... but I wanted to limit the amount of lines that appear on my listview…
-
1
votes1
answer364
viewsQ: How to grab the value stored in a column using Cursor?
I have a cursor that receives all data from my table then use the Simplescursoradapter to put in a listview. I was wondering if with this same cursor I could take a die from a Row and put in a…
-
1
votes1
answer208
viewsQ: How to Save an Image to the Database
Hi, I was wondering if you have how to save an image in the database and show in a listview. If you have how you wanted to know or if there is no way to save an image in the database , how can I…
-
0
votes1
answer27
viewsQ: Change Layout with your finger
Hi, I’m wondering how do I change one layout to another by dragging the screen.... as if it were in a gallery but instead of photos would be different layouts Thank you!!!