LinearLayoutCompat

public class LinearLayoutCompat
extends ViewGroup

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ androidx.appcompat.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

Inherited fields

Public constructors

LinearLayoutCompat(Context context)
LinearLayoutCompat(Context context, AttributeSet attrs)
LinearLayoutCompat(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

LinearLayoutCompat.LayoutParams generateLayoutParams(AttributeSet attrs)
int getBaseline()
int getBaselineAlignedChildIndex()
Drawable getDividerDrawable()
int</