完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/FrameLayout.LayoutParams.html
FrameLayout.LayoutParams
public static class FrameLayout.LayoutParams
extends ViewGroup.MarginLayoutParams
java.lang.Object | |||
↳ | android.view.ViewGroup.LayoutParams | ||
↳ | android.view.ViewGroup.MarginLayoutParams | ||
↳ | android.widget.FrameLayout.LayoutParams |
Per-child layout information for layouts that support margins. See FrameLayout Layout Attributes
for a list of all child view attributes that this class supports.
布局的每个子布局的信息,其支持外边距(marging)。关于此类支持的所有子视图属性列表,请参考FrameLayout Layout Attributes
。
摘要
XML属性 | |
---|---|
android:layout_gravity | 标准重力常数, 其由子项提供给其父项。 |
继承XML属性 | |
---|---|
From class android.view.ViewGroup.MarginLayoutParams
| |
From class android.view.ViewGroup.LayoutParams
|
常量 | |
---|---|
int | UNSPECIFIED_GRAVITY Value for |
继承常量 |
---|
From class android.view.ViewGroup.LayoutParams
|
字段 | |
---|---|
public int | gravity The gravity to apply with the View to which these layout parameters are associated. |
继承字段 |
---|
From class android.view.ViewGroup.MarginLayoutParams
|
From class android.view.ViewGroup.LayoutParams
|
Public构造方法 | |
---|---|
FrameLayout.LayoutParams(Context c, AttributeSet attrs) | |
FrameLayout.LayoutParams(int width, int height) | |
FrameLayout.LayoutParams(int width, int height, int gravity) Creates a new set of layout parameters with the specified width, height and weight. |