Most visited

Recently visited

LinearLayoutCompat.LayoutParams

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
Known Direct Subclasses


与ViewLinearLayout相关联的每个孩子的布局信息。

Summary

Inherited XML attributes

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

Inherited constants

From class android.view.ViewGroup.LayoutParams

Fields

public int gravity

与这些LayoutParams相关的视图的重力。

public float weight

指示LinearLayout中多少额外空间将分配给与这些LayoutParams关联的视图。

Inherited fields

From class android.view.ViewGroup.MarginLayoutParams
From class 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

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Fields

gravity

int gravity

与这些LayoutParams相关的视图的重力。

也可以看看:

weight

float weight

指示LinearLayout中多少额外空间将分配给与这些LayoutParams关联的视图。 如果不应拉伸视图,请指定0。 否则,额外像素将在所有重量大于0的视图中按比例分配。

Public constructors

LinearLayoutCompat.LayoutParams

LinearLayoutCompat.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context
attrs AttributeSet

LinearLayoutCompat.LayoutParams

LinearLayoutCompat.LayoutParams (int width, 
                int height)

Parameters
width int
height int

LinearLayoutCompat.LayoutParams

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

LinearLayoutCompat.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

LinearLayoutCompat.LayoutParams

LinearLayoutCompat.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

LinearLayoutCompat.LayoutParams

LinearLayoutCompat.LayoutParams (LinearLayoutCompat.LayoutParams source)

复制构造函数。 克隆源的宽度,高度,边距值,重量和重力。

Parameters
source LinearLayoutCompat.LayoutParams: The layout params to copy from.

Hooray!