What is the android equivalent of the CSS style attribute display:none?
In web pages the display:none stylesheet causes the web page element to which it is applied to be hidden and not occupy any space. When the element’s attribute is changed dynamically using Javascript to visible, the browser shows the element moving any other elements surrounding it.
you can use
setVisibilityon a view.There are 3 options available
VISIBLE – seen by the user
INVISIBLE – not seen by the user. But the view still takes some space.
GONE – not seen by the user, and the view doesn’t take up any space.
Adding examples
4 Text views in a
LinearLayoutoriented vertically, all visible4 Text views in a

LinearLayoutoriented vertically, 2 set to invisible4 Text views in a

LinearLayoutoriented vertically, 2 set to gone