Posts by Edumachdo • 160 points
13 posts
-
0
votes2
answers926
viewsA: How to Print a list of numbers summed in sequence?
You will need to put one more variable. K-> the sum basis x-> the fixed number y-> the number that will grow with the fixed number The account will look something like this (assuming x is…
-
0
votes2
answers102
viewsQ: Adapter modified in real time
I have a Activity calling for ListaBasica and a Adapter by the name of adapterBasico. The Adapter contains a list of newsletters. A Activity contain information taken from Adapter as the sum of the…
-
0
votes1
answer583
viewsA: How to switch between cameras (Front, Back)?
I hope this helps: Choosing the camera A device can have multiple cameras, a camera or none. To identify the exact number it is possible to make the following call (available from Android 2.3): int…
-
0
votes3
answers1389
views -
1
votes6
answers3996
viewsA: Check if Edittext is empty
Based on what the ramaral did, because this correct, I would only change a few points and add a few lines for the code to be more complete. public void calcular(View v){ if…
-
3
votes6
answers3996
viewsA: Check if Edittext is empty
If what you want is just check if the field is empty try to use the following line: if(edt1.getText().toString().equals("")){ //Colocar o que vc quer que aconteça caso esteja vazio. } or else:…
-
1
votes2
answers459
viewsQ: Edittext without Focus by Activity
Is there any command in the Activity that prevents a EditText to receive focus even with the user clicking? Or this can only be done by XML? I have a repository that is connected to a database and I…
-
5
votes3
answers317
viewsQ: How to not distort the layout when opening the keyboard?
I have a linear layout with a form. Whenever the keyboard is opened it distorts my layout leaving my Buttons in half, is there any way to keep my layout intact when the keyboard is opened?? Some…
-
0
votes2
answers492
viewsA: force user to fill in edittext
But I would put a method, which checks whether the field is null or not, to be activated when the user clicks the Button. Take a look at this link. I hope it helps. When validating fields of a swing…
-
1
votes2
answers502
viewsA: When to validate fields from a swing form?
As it is a form, you must have a Button to save or proceed, depending on your form. When I need to assemble forms this way, I always put a method to check if there is an empty field, by pressing the…
-
0
votes2
answers738
viewsA: Update of Fragments Tabs!
I managed to solve my problem. In case anyone has any further doubts. I am leaving the method I used in my List so that the necessary refresh occurs: @Override public void setUserVisibleHint(boolean…
-
0
votes2
answers738
viewsQ: Update of Fragments Tabs!
I have two Tabs in my App, composed of fragments. The first is a form that saves the data in the database. The second is a list that retrieves that data. I would like to know how to update my List…
-
2
votes2
answers308
viewsQ: Delete an editText when modifying another
I’m starting my studies on Android now, and I’m doing some tests. I have two Autocomplittextview fields, in both an id and a description is shown. X1 and X2 (fictitious names). The X2 list is…