added in version 25.1.0
belongs to Maven artifact


public static class LinearLayoutCompat.LayoutParams
extends ViewGroup.MarginLayoutParams

   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
Known Direct Subclasses

Per-child layout information associated with ViewLinearLayout.


Inherited constants

From class android.view.ViewGroup.LayoutParams


public int gravity

Gravity for the view associated with these LayoutParams.

public float weight

Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams.

Inherited fields

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Public constructors

LinearLayoutCompat.LayoutParams(Context c, AttributeSet attrs)

LinearLayoutCompat.LayoutParams(int width, int height)

LinearLayoutCompat.LayoutParams(int width, int height, float weight)

Creates a new set of layout parameters with the specified width, height and weight.

LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams p)