androd 视图(View)是否可见的状态值有3个:
(1)0
-------- VISIBLE
可见
(2)4
-------- INVISIBLE
不可见但是占用布局空间
(3)8
-------- GONE
不可见也不占用布局空间
xml布局中可直接设置:
android:visibility = "VISIBLE"
android:visibility = "INVISIBLE"
android:visibility
= "GONE"
在程序中可使用view.getVisibility()获取状态值。