public static class TableLayout.LayoutParams
extends LinearLayout.LayoutParams
| java.lang.Object | ||||
| android.view.ViewGroup.LayoutParams | ||||
| android.view.ViewGroup.MarginLayoutParams | ||||
| android.widget.LinearLayout.LayoutParams | ||||
| android.widget.TableLayout.LayoutParams | ||||
这组布局参数强制每个孩子的宽度为 MATCH_PARENT ,每个孩子的高度为 WRAP_CONTENT ,但只限于未指定高度。
Inherited XML attributes |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
Inherited constants |
|---|
android.view.ViewGroup.LayoutParams
|
Inherited fields |
|---|
android.widget.LinearLayout.LayoutParams
|
android.view.ViewGroup.MarginLayoutParams
|
android.view.ViewGroup.LayoutParams
|
Public constructors |
|
|---|---|
TableLayout.LayoutParams(Context c, AttributeSet attrs) |
|
TableLayout.LayoutParams(int w, int h) |
|
TableLayout.LayoutParams(int w, int h, float initWeight) |
|
TableLayout.LayoutParams() 将子宽度设置为 |
|
TableLayout.LayoutParams(ViewGroup.LayoutParams p) |
|
TableLayout.LayoutParams(ViewGroup.MarginLayoutParams source) |
|
Protected methods |
|
|---|---|
void |
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) 将行的宽度修复为 |
继承方法(Inherited methods) |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
java.lang.Object
|
|
TableLayout.LayoutParams (Context c, AttributeSet attrs)
| 参数(Parameters) | |
|---|---|
c |
Context
|
attrs |
AttributeSet
|
TableLayout.LayoutParams (int w,
int h)
| 参数(Parameters) | |
|---|---|
w |
int
|
h |
int
|
TableLayout.LayoutParams (int w,
int h,
float initWeight)
| 参数(Parameters) | |
|---|---|
w |
int
|
h |
int
|
initWeight |
float
|
TableLayout.LayoutParams ()
将子宽度设置为 ViewGroup.LayoutParams ,将子女高度设置为 WRAP_CONTENT 。
TableLayout.LayoutParams (ViewGroup.LayoutParams p)
| 参数(Parameters) | |
|---|---|
p |
ViewGroup.LayoutParams
|
TableLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
ViewGroup.MarginLayoutParams
|
void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)
将行的宽度修复为MATCH_PARENT ; 如果未指定布局高度,则行的高度固定为WRAP_CONTENT 。
| 参数(Parameters) | |
|---|---|
a |
TypedArray: the styled attributes set |
widthAttr |
int: the width attribute to fetch |
heightAttr |
int: the height attribute to fetch |