View.setvisibility () is often used in the development of UI apps in Android to set the visibility of controls. The function has 3 optional values. They have different meanings:
View.visible---> Visible
View.
Q=invisible&ie=utf-8&src=se_lighten_f "style=" margin:0px; padding:0px; Color:rgb (0,0,240); Display:inline; Position:static ">invisible---> Not visible. However, this view will still occupy the layout space allocated in the XML file, but not again.
View.gone----> not visible. But this view does not retain its position in the ViewGroup and will be layout again. No longer takes up space, then the view behind it will replace his position.
So be careful when you use it. Especially to use good invisible and gone.
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Android visible invisible and gone differences