java.lang.Object | ||||
↳ | android.view.ViewGroup.LayoutParams | |||
↳ | android.view.ViewGroup.MarginLayoutParams | |||
↳ | android.widget.LinearLayout.LayoutParams | |||
↳ | android.widget.TableRow.LayoutParams |
XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.LinearLayout.LayoutParams
| |||||||||||
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
|
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.LayoutParams
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
column | The column index of the cell represented by the widget. |
||||||||||
span | The number of columns the widgets spans over. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.LinearLayout.LayoutParams
| |||||||||||
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the child width and the child height. | |||||||||||
Sets the child width, height and weight. | |||||||||||
Sets the child width to | |||||||||||
Puts the view in the specified column. | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the layout parameters from the supplied attributes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.LinearLayout.LayoutParams
| |||||||||||
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
From class
java.lang.Object
|
The index of the column in which this child should be.
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
.
Defines how many columns this child should span. Must be >= 1.
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
.
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 MATCH_PARENT
and the child height to
WRAP_CONTENT
.
column | the column index for the view |
---|
Extracts the layout parameters from the supplied attributes.
a | the style attributes to extract the parameters from |
---|---|
widthAttr | the identifier of the width attribute |
heightAttr | the identifier of the height attribute |