java.lang.Object | |||||
android.view.ViewGroup.LayoutParams | |||||
android.view.ViewGroup.MarginLayoutParams | |||||
android.widget.LinearLayout.LayoutParams | |||||
android.widget.TableRow.LayoutParams |
Set of layout parameters used in table rows.
Attribute name | Related methods | |
---|---|---|
android:layout_column | The index of the column in which this child should be. | |
android:layout_span | Defines how many columns this child should span. |
public | int | column | The column index of the cell represented by the widget. |
||
public | int | span | The number of columns the widgets spans over. |
TableRow.LayoutParams(Context c, AttributeSet attrs) | ||||||
TableRow.LayoutParams(int w, int h) | ||||||
Sets the child width and the child height. |
||||||
TableRow.LayoutParams(int w, int h, float initWeight) | ||||||
Sets the child width, height and weight. |
||||||
TableRow.LayoutParams() | ||||||
Sets the child width to ViewGroup.LayoutParams and the child height to WRAP_CONTENT. |
||||||
TableRow.LayoutParams(int column) | ||||||
Puts the view in the specified column. |
||||||
TableRow.LayoutParams(ViewGroup.LayoutParams p) | ||||||
TableRow.LayoutParams(ViewGroup.MarginLayoutParams source) | ||||||
void | setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) | |||||
Extracts the layout parameters from the supplied attributes. |
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_column.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_span.
The column index of the cell represented by the widget.
The number of columns the widgets spans over.
Sets the child width and the child height.
w | the desired width |
---|---|
h | the desired height |
Sets the child width, height and weight.
w | the desired width |
---|---|
h | the desired height |
initWeight | the desired weight |
Sets the child width to ViewGroup.LayoutParams and the child height to WRAP_CONTENT.
Puts the view in the specified column.
Sets the child width to FILL_PARENT and the child height to WRAP_CONTENT.
column | the column index for the view |
---|
a | the style attributes to extract the parameters from |
---|---|
widthAttr | the identifier of the width attribute |
heightAttr | the identifier of the height attribute |
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:56 |