In Android development, most of the controls have the visibility attribute, with 3 properties of "visible", "invisible", and "Gone" respectively. Used primarily to set the display and hiding of control controls. Some people may wonder what is the difference between invisible and gone??? So, let's look at the following with this question:
It is set in the XML file and Java code as follows:
viewable (visible)
XML file: android:visibility= "visible"
Java code: view.setvisibility (view.visible);
Not visible (invisible)
XML file: android:visibility= "Invisible"
Java code: view.setvisibility (view.invisible);
Hidden (GONE)
XML file: android:visibility= "Gone"
Java code: view.setvisibility (View.gone);
The main difference between invisible and gone is that when the control visibility property is invisible, the interface retains the space occupied by the view control, while the control property is gone, the interface does not preserve the space occupied by the view control.
The difference between visible, INVISIBLE, gone in visibility properties in Android note--android