Android development display and hide of controls setVisibility View. VISIBLE View. INVISIBLE View. GONE

  • 2021-07-22 11:15:44
  • OfStack

In Android, setVisibility is used as an attribute of display and hiding, so we all operate in code, such as:

[code] < span style="white-space:pre" > < /span > this.mItem.setVisibility(View.VISIBLE);[code]

There are three values that can be set, namely:

View. VISIBLE visible

View. INVISIBLE is not visible, but the seat it used to occupy is still there

View. GONE is not visible, leaving no trace or position


Related articles: