view 隐藏 显示

android view的setVisibility方法值的意思 
有三个值 visibility  One of VISIBLE, INVISIBLE, or GONE. 

常量值为0,意思是可见的 
常量值为4,意思是不可见的 
常量值为8,意思是不可见的,而且不占用布局空间

例:

curView.setVisibility(4);

原文地址:https://www.cnblogs.com/sode/p/2133769.html