Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
57 views

how to change visibility edittext in mainactivity from alertdialog

I have designed an alertdialog of which when the user press the save button MainActivity public void openDialog(View view) { RegDialog regDialog = new RegDialog(); regDialog.show(...
Amor Laamayad's user avatar
0 votes
1 answer
231 views

Visibility of Editext Not Working in my dialogue in android

Edittext Visibility not working in dialogue in my code here is my xml. <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:...
Majid Ali's user avatar
0 votes
0 answers
27 views

Admob ad won't disappear when editing text in Fragment Activity

Admob is blocking EditText when user wants to enter a value. I introduced this code but it is still not working. iAge = (EditText) v.findViewById(R.id.edAge); iIncome= (EditText) v.findViewById(R.id....
Gideon Adewumi's user avatar
0 votes
1 answer
162 views

input method next not focusing on an edit text

I have 5 edit texts where user enters his options, I keep first two visible and other 3 visibility gone. If user wants to enter option 3 I make it visible by pressing action next key on keyboard while ...
Aalap Patel's user avatar
  • 2,056
1 vote
1 answer
904 views

Edittext outline not always visible

Here are the samples When I enter the activity, the line does not show, but if I enter it a lot of times, it eventually shows. I don't understand, I don't know if I can do something to make it work. ...
Georgian Benetatos's user avatar
0 votes
3 answers
3k views

On button click Visibility of Password in EditText

I have used default properties of edittext to make it a "Password" field, android:password="true". Now, I have a Button besides EditText. I want as long as I press that button my password characters ...
LuminiousAndroid's user avatar
0 votes
1 answer
138 views

Getting data flow algorithm error on EditText visibility

I have a couple of sets of EditText that i set to visible on a button click. In on my onClick, it is saying that my method is too complex to analyze by data flow algorithm. The code works fine when I ...
Android Newbie's user avatar
1 vote
1 answer
67 views

Saving state of `EditText` visibility

I have couple of editTexts that are set to VISIBLE and INVISIBLE by a button click. I tried saving the state of visibility or invisibility using a Boolean and setting it to True when it became VISIBLE ...
Android Newbie's user avatar
-5 votes
2 answers
89 views

Setting EditText visibility [duplicate]

I have four EditText that I set to invisible in the XML and when the button is clicked, I want them to be visible in pairs. For example, when the button is clicked, I want et1 and et2 to be visible, ...
jj7's user avatar
  • 13
0 votes
1 answer
127 views

Error in getView() when I focus an EditText

In my ListView I have many rows, each with a TextView and a Button. If I click on the TextView, this two Views are made invisible(GONE) and I show an EditText and another Button. This last Button ...
giacomotb's user avatar
  • 607
2 votes
2 answers
2k views

edittext focused on visible in android

I have one edittext.It is INVISIBLE by defalut.On click of list item it is visible.I want to focust edit text when it is visible.and opens soft keyboard.i have searches alot but it is no working on ...
Jinal Patel's user avatar
0 votes
1 answer
150 views

Hide EditText from AbsoluteLayout

I have created EditText via xml file. I have to hide it when certain condition get true. I have tried setVisibility(View.GONE) and setVisibility(View.INVISIBLE) but nothing happens. Is there any ...
priyesh kanodiya's user avatar
-4 votes
1 answer
301 views

Hiding Edittext in spinner onItemSelected

In one of my layouts I have a EditText that I show only when one spinner option is selected. In the rest of options is hide. This action doesn't work, when I select one option the EditText is not ...
user1716847's user avatar
0 votes
1 answer
373 views

EditText and ImageButton does not go away when i change my fragment

I have the following fragment: public class ChooseAssigmentFragment extends Fragment { private ListArrayAdapter listArrayAdapter; private Assigments assigments; private ListView assigList; private ...
rosu alin's user avatar
  • 5,810
1 vote
2 answers
2k views

EditText visible when selected Spinner

I have a spinner with a list of two items in @ strings. I want that when User A to select the item becomes visible editbox. When you select item B be invisible again. thank you!
GDawson's user avatar
  • 337