基本布局之线性布局(LinearLayout)

如题所示,线性布局

写法:

        android:orientation="vertical"

        android:layout_width="match_parent"

        android:layout_height="match_parent">

..........

..........

 

重要属性:android:layout_gravity用于指定控件在布局中的对齐方式,类似于android:gravity,可以参照使用

                 android:layout_weight表示占比(总和),仅限于LinearLayout中

转载于:https://my.oschina.net/u/3466217/blog/898925

你可能感兴趣的:(基本布局之线性布局(LinearLayout))