“layout_”下划线开头的属性

观看幕课网的视频的收获

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

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

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

        android:background="#00ff00"
        android:visibility="gone"
原文地址:https://www.cnblogs.com/20000ding/p/5021616.html