java.lang.Object | |||
↳ | android.view.ViewGroup.LayoutParams | ||
↳ | android.view.ViewGroup.MarginLayoutParams | ||
↳ | android.support.v7.widget.LinearLayoutCompat.LayoutParams |
![]() |
Per-child layout information associated with ViewLinearLayout.
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new set of layout parameters with the specified width, height
and weight.
| |||||||||||
Copy constructor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
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. |
---|