i have a lot of EditTexts. I want the user to delete some edittexts if he doesn't want to type anything and i want that edittext to go away from the screen. Can i do that?
Asked
Active
Viewed 57 times
-6
-
How about `setVisibility(View.GONE)` ? – Michael Nov 28 '17 at 12:15
-
Possible duplicate of [Hide and Unhide EditText](https://stackoverflow.com/questions/16012548/hide-and-unhide-edittext) – Tssomas Nov 28 '17 at 12:23
-
Welcome to SO. You'll likely want to submit future questions with more care and context, to help readers understand what you're asking. For example, add Android in your title; check your basic English usage -- even non-native speakers know to capitalize "I"; ask yourself if you would understand what you've asked, and generally try to make it as easy as possible to help you. – Mallory-Erik Nov 28 '17 at 12:26
-
edittext.setVisibility(View.GONE) – Ronak Thakkar Nov 28 '17 at 12:31
1 Answers
1
Yes you can do that by changing the visibility. First set visibility of the edittext as setVisibility(View.INVISIBLE) then setVisibility(View.GONE).

Flavin D'costa
- 11
- 3