Android APIs
public static class

LinearLayoutCompat.LayoutParams

extends ViewGroup.MarginLayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.support.v7.widget.LinearLayoutCompat.LayoutParams
Known Direct Subclasses

Class Overview

Per-child layout information associated with ViewLinearLayout.

Summary

[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
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.
[Expand]
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)
LinearLayoutCompat.LayoutParams(ViewGroup.MarginLayoutParams source)
LinearLayoutCompat.LayoutParams(LinearLayoutCompat.LayoutParams source)
Copy constructor.
[Expand]
Inherited Methods
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Fields

public int gravity

Gravity for the view associated with these LayoutParams.

See Also

public float weight

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.

Public Constructors

public LinearLayoutCompat.LayoutParams (Context c, AttributeSet attrs)

public LinearLayoutCompat.LayoutParams (int width, int height)

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

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

Parameters
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

public LinearLayoutCompat.LayoutParams (ViewGroup.LayoutParams p)

public LinearLayoutCompat.LayoutParams (ViewGroup.MarginLayoutParams source)

public LinearLayoutCompat.LayoutParams (LinearLayoutCompat.LayoutParams source)

Copy constructor. Clones the width, height, margin values, weight, and gravity of the source.

Parameters
source The layout params to copy from.