📜  隐藏元素 android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:06.143000             🧑  作者: Mango

代码示例1
//in your XML file:
android:visibility="gone" <-- hides

android:visibility="visible" <-- makes it visible

//or in java file:
textView.setVisibility(View.GONE);//makes it disappear

textView.setVisibility(View.VISIBLE);//makes it visible again