Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

PercentRelativeLayout.LayoutParams

public static class PercentRelativeLayout.LayoutParams
extends RelativeLayout.LayoutParams implements PercentLayoutHelper.PercentLayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.RelativeLayout.LayoutParams
         ↳ androidx.percentlayout.widget.PercentRelativeLayout.LayoutParams


This class is deprecated.
this class is deprecated along with its parent class.

Summary

Inherited constants

Inherited fields

Public constructors

PercentRelativeLayout.LayoutParams(Context c, AttributeSet attrs)
PercentRelativeLayout.LayoutParams(int width, int height)
PercentRelativeLayout.LayoutParams(ViewGroup.LayoutParams source)
PercentRelativeLayout.LayoutParams(ViewGroup.MarginLayoutParams source)

Public methods

PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo()

Protected methods

void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)

Inherited methods

Public constructors

PercentRelativeLayout.LayoutParams

public PercentRelativeLayout.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

PercentRelativeLayout.LayoutParams

public PercentRelativeLayout.LayoutParams (int width, 
                int height)

Parameters
width int

height int

PercentRelativeLayout.LayoutParams

public PercentRelativeLayout.LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams

PercentRelativeLayout.LayoutParams

public PercentRelativeLayout.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

Public methods

getPercentLayoutInfo

public PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo ()

Returns
PercentLayoutHelper.PercentLayoutInfo

Protected methods

setBaseAttributes

protected void setBaseAttributes (TypedArray a, 
                int widthAttr, 
                int heightAttr)

Parameters
a TypedArray

widthAttr int

heightAttr int