added in
version 24.1.0
belongs to Maven artifact com.android.support:percent:28.0.0-alpha1
Deprecated since version 26.1.0
PercentRelativeLayout.LayoutParams
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
static
class
PercentRelativeLayout.LayoutParams
extends RelativeLayout.LayoutParams
implements
PercentLayoutHelper.PercentLayoutParams
This class was deprecated
in API level 26.1.0.
this class is deprecated along with its parent class.
Summary
Inherited constants
From
class
android.view.ViewGroup.LayoutParams
int
FILL_PARENT
int
MATCH_PARENT
int
WRAP_CONTENT
Inherited fields
From
class
android.widget.RelativeLayout.LayoutParams
From
class
android.view.ViewGroup.MarginLayoutParams
public
int
bottomMargin
public
int
leftMargin
public
int
rightMargin
public
int
topMargin
From
class
android.view.ViewGroup.LayoutParams
Public constructors
PercentRelativeLayout.LayoutParams
PercentRelativeLayout.LayoutParams (Context c,
AttributeSet attrs)
Parameters
c
Context
attrs
AttributeSet
PercentRelativeLayout.LayoutParams
PercentRelativeLayout.LayoutParams (int width,
int height)
Parameters
width
int
height
int
PercentRelativeLayout.LayoutParams
PercentRelativeLayout.LayoutParams (ViewGroup.LayoutParams source)
Parameters
source
ViewGroup.LayoutParams
PercentRelativeLayout.LayoutParams
PercentRelativeLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
Parameters
source
ViewGroup.MarginLayoutParams
Public methods
Protected methods
setBaseAttributes
void setBaseAttributes (TypedArray a,
int widthAttr,
int heightAttr)
Parameters
a
TypedArray
widthAttr
int
heightAttr
int
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]