📜  android studio 可见性 - Java 代码示例

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

代码示例1
//An ImageButton for example:
ImageButton btn = findViewById(R.id.viewID);

btn.setVisibility(View.INVISIBLE); // or...
btn.setVisibility(View.GONE); // or...
btn.setVisibility(View.VISIBLE);