public static class LinearLayoutCompat.LayoutParams
extends ViewGroup.MarginLayoutParams
| java.lang.Object | |||
| android.view.ViewGroup.LayoutParams | |||
| android.view.ViewGroup.MarginLayoutParams | |||
| android.support.v7.widget.LinearLayoutCompat.LayoutParams | |||
| |
与ViewLinearLayout相关联的每个孩子的布局信息。
Inherited XML attributes |
|
|---|---|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
Inherited constants |
|---|
android.view.ViewGroup.LayoutParams
|
Fields |
|
|---|---|
public int |
gravity 与这些LayoutParams相关的视图的重力。 |
public float |
weight 指示LinearLayout中多少额外空间将分配给与这些LayoutParams关联的视图。 |
Inherited fields |
|---|
android.view.ViewGroup.MarginLayoutParams
|
android.view.ViewGroup.LayoutParams
|
Public constructors |
|
|---|---|
LinearLayoutCompat.LayoutParams(Context c, AttributeSet attrs) |
|
LinearLayoutCompat.LayoutParams(int width, int height) |
|
LinearLayoutCompat.LayoutParams(int width, int height, float weight) 用指定的宽度,高度和重量创建一组新的布局参数。 |
|
LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams p) |
|
LinearLayoutCompat.LayoutParams(ViewGroup.MarginLayoutParams source) |
|
LinearLayoutCompat.LayoutParams(LinearLayoutCompat.LayoutParams source) 复制构造函数。 |
|
继承方法(Inherited methods) |
|
|---|---|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
java.lang.Object
|
|
float weight
指示LinearLayout中多少额外空间将分配给与这些LayoutParams关联的视图。 如果不应拉伸视图,请指定0。 否则,额外像素将在所有重量大于0的视图中按比例分配。
LinearLayoutCompat.LayoutParams (Context c, AttributeSet attrs)
| 参数(Parameters) | |
|---|---|
c |
Context
|
attrs |
AttributeSet
|
LinearLayoutCompat.LayoutParams (int width,
int height)
| 参数(Parameters) | |
|---|---|
width |
int
|
height |
int
|
LinearLayoutCompat.LayoutParams (int width,
int height,
float weight)
用指定的宽度,高度和重量创建一组新的布局参数。
| 参数(Parameters) | |
|---|---|
width |
int: the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels |
height |
int: the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels |
weight |
float: the weight |
LinearLayoutCompat.LayoutParams (ViewGroup.LayoutParams p)
| 参数(Parameters) | |
|---|---|
p |
ViewGroup.LayoutParams
|
LinearLayoutCompat.LayoutParams (ViewGroup.MarginLayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
ViewGroup.MarginLayoutParams
|
LinearLayoutCompat.LayoutParams (LinearLayoutCompat.LayoutParams source)
复制构造函数。 克隆源的宽度,高度,边距值,重量和重力。
| 参数(Parameters) | |
|---|---|
source |
LinearLayoutCompat.LayoutParams: The layout params to copy from. |