I could not find anything that straight out answers this question. If I set the component (such as a Button, ListView, EditText) in the xml with a visibility of GONE, am I still able to interact with those components even though they are invisible? I tested it out with a Button and it seems to be no but I want to make sure.
Best How To :
When the visibility is set to GONE, the component is removed from the view hierarchy and no space is set aside for it. Moreover, there is no way for the user to interact with it (However, changes made to the
View by the programmer while it is
GONE become manifest when the visibility is changed to
When the visibility is set to INVISIBLE, the component is still actually present in the view hierarchy, and space is calculated for it.