Google 致力于为黑人社区推动种族平等。查看具体举措

PercentFrameLayout.LayoutParams

public static class PercentFrameLayout.LayoutParams
extends FrameLayout.LayoutParams implements PercentLayoutHelper.PercentLayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.FrameLayout.LayoutParams
         ↳ androidx.percentlayout.widget.PercentFrameLayout.LayoutParams


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

Summary

Inherited constants

Inherited fields

Public constructors

LayoutParams(Context c, AttributeSet attrs)
LayoutParams(int width, int height)
LayoutParams(int width, int height, int gravity)
LayoutParams(ViewGroup.LayoutParams source)
LayoutParams(ViewGroup.MarginLayoutParams source)
LayoutParams(FrameLayout.LayoutParams source)
LayoutParams(PercentFrameLayout.LayoutParams source)

Public methods

PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo()

Protected methods

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

Inherited methods

Public constructors

LayoutParams

public LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

LayoutParams

public LayoutParams (int width, 
                int height)

Parameters
width int

height int

LayoutParams

public LayoutParams (int width, 
                int height, 
                int gravity)

Parameters
width int

height int

gravity int

LayoutParams

public LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams

LayoutParams

public LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

LayoutParams

public LayoutParams (FrameLayout.LayoutParams source)

Parameters
source FrameLayout.LayoutParams

LayoutParams

public LayoutParams (PercentFrameLayout.LayoutParams source)

Parameters
source PercentFrameLayout.LayoutParams

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