组件隐藏

有时候写好了项目,领导可能说不要某一条。去注释或者删除会影响Java代码里面的ID访问,所以我们可以使用组件隐藏。

 

控件不可见不占位
android:visibility="gone"

<RelativeLayout
android:id="@+id/rr_money_mall"
android:layout_width="fill_parent"
android:layout_height="45dip"
android:background="@color/white"
android:visibility="gone">

posted @ 2017-03-29 17:07  力哥3  阅读(92)  评论(0)    收藏  举报