完整内容,请查看: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 已知的直接子类 ActionMenuView.LayoutParams, AppBarLayout.LayoutParams, RadioGroup.LayoutParams, TableLayout.LayoutParams, TableRow.LayoutParams Per-child layout information associated with ViewLinearLayout. 与ViewLinearLayout相关的每个子布局的信息。 摘要 XML属性 android:layout_gravity重力值指定了一个组件如何被放置在它的单元格组中。 android:layout_weight线性布局(LinearLayout)中的额外空间,有多少分配给与这些LayoutParams关联的视图。 继承XML属性 From class android.view.ViewGroup.MarginLayoutParams From class android.view.ViewGroup.LayoutParams 继承常量 From class android.view.ViewGroup.LayoutParams 字段 public intgravity Gravity for the view associated with these LayoutParams. 与这些LayoutParams相关的视图的重力值。 public floatweight Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. 线性布局(LinearLayout)中的额外空间,有多少将被分配给与这些LayoutParams关联的视图。