“layout_”下划线开头的属性

观看幕课网的视频的收获

 

“layout_”下划线开头的属性都是交给父容器去处理的属性,如:

        android:layout_width="match_parent"
        android:layout_height="match_parent"

没有layout_”下划线开头的属性都是本身的属性,如:

        android:background="#00ff00"
        android:visibility="gone"

 

posted @ 2015-12-05 15:08  devin.ding  阅读(222)  评论(0编辑  收藏  举报