Android7.0中文文档(API)-- LinearLayout.LayoutParams

完整内容,请查看: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属性

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

继承常量

From class android.view.ViewGroup.LayoutParams

字段

public int gravity

Gravity for the view associated with these LayoutParams.
与这些LayoutParams相关的视图的重力值。

public float weight

Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams.
线性布局(LinearLayout)中的额外空间,有多少将被分配给与这些LayoutParams关联的视图。

你可能感兴趣的:(android中文文档,android7.0中文API)