| java.lang.Object | |||
| ↳ | android.view.ViewGroup.LayoutParams | ||
| ↳ | android.view.ViewGroup.MarginLayoutParams | ||
| ↳ | android.support.v7.widget.LinearLayoutCompat.LayoutParams | ||
Known Direct Subclasses
|
Per-child layout information associated with ViewLinearLayout.
|
[Expand]
Inherited XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| gravity | Gravity for the view associated with these LayoutParams. | ||||||||||
| weight | Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new set of layout parameters with the specified width, height
and weight.
| |||||||||||
Copy constructor.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.ViewGroup.MarginLayoutParams
| |||||||||||
From class
android.view.ViewGroup.LayoutParams
| |||||||||||
From class
java.lang.Object
| |||||||||||
Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
Creates a new set of layout parameters with the specified width, height and weight.
| width | the width, either MATCH_PARENT,
WRAP_CONTENT or a fixed size in pixels |
|---|---|
| height | the height, either MATCH_PARENT,
WRAP_CONTENT or a fixed size in pixels |
| weight | the weight |
Copy constructor. Clones the width, height, margin values, weight, and gravity of the source.
| source | The layout params to copy from. |
|---|