完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/LinearLayout.LayoutParams.html
LinearLayout.LayoutParams
public static class LinearLayout.LayoutParams
extends ViewGroup.MarginLayoutParams
java.lang.Object | |||
↳ | android.view.ViewGroup.LayoutParams | ||
↳ | android.view.ViewGroup.MarginLayoutParams | ||
↳ | android.widget.LinearLayout.LayoutParams |
Per-child layout information associated with ViewLinearLayout.
与ViewLinearLayout相关的每个子布局的信息。
摘要
XML属性 | |
---|---|
android:layout_gravity | 重力值指定了一个组件如何被放置在它的单元格组中。 |
android:layout_weight | 线性布局(LinearLayout)中的额外空间,有多少分配给与这些LayoutParams关联的视图。 |
继承XML属性 | |
---|---|
![]() android.view.ViewGroup.MarginLayoutParams
| |
![]() android.view.ViewGroup.LayoutParams
|
继承常量 |
---|
![]() android.view.ViewGroup.LayoutParams
|
字段 | |
---|---|
public int | gravity Gravity for the view associated with these LayoutParams. |
public float | weight Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. |