belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
LinearLayoutCompat
public
class
LinearLayoutCompat
extends ViewGroup
java.lang.Object | |||
↳ | android.view.View | ||
↳ | android.view.ViewGroup | ||
↳ | android.support.v7.widget.LinearLayoutCompat |
![]() |
A Layout that arranges its children in a single column or a single row. The direction of
the row can be set by calling setOrientation()
.
You can also specify gravity, which specifies the alignment of all the child elements by
calling setGravity()
or specify that specific children
grow to fill up any remaining space in the layout by setting the weight member of
LinearLayoutCompat.LayoutParams
.
The default orientation is horizontal.
See the Linear Layout guide.
Also see LinearLayoutCompat.LayoutParams
for layout attributes
Summary
Nested classes | |
---|---|
class |
LinearLayoutCompat.LayoutParams
Per-child layout information associated with ViewLinearLayout. |
Constants | |
---|---|
int |
HORIZONTAL
|
int |
SHOW_DIVIDER_BEGINNING
Show a divider at the beginning of the group. |
int |
SHOW_DIVIDER_END
Show a divider at the end of the group. |
int |
SHOW_DIVIDER_MIDDLE
Show dividers between each item in the group. |
int |
SHOW_DIVIDER_NONE
Don't show any dividers. |
int |
VERTICAL
|
Inherited constants |
---|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|