# PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:percent:28.0.0-alpha1  
Deprecated since version 26.1.0  
Summary:[Inherited Constants](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#inhconstants)\|[Inherited Fields](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#inhfields)\|[Ctors](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#pubctors)\|[Methods](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)  

# PercentFrameLayout.LayoutParams

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


class
PercentFrameLayout.LayoutParams
`  
`


``


``


``

extends `[FrameLayout.LayoutParams](https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html)`


``


implements

`[PercentLayoutHelper.PercentLayoutParams](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams)`


`

|---|---|---|---|---------------------------------------------------------|
| java.lang.Object                                                    |||||
| ↳ | [android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html) ||||
|   | ↳ | [android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html) |||
|   |   | ↳ | [android.widget.FrameLayout.LayoutParams](https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html) ||
|   |   |   | ↳ | android.support.percent.PercentFrameLayout.LayoutParams |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 26.1.0.**   
this class is deprecated along with its parent class.

## Summary

|                                                                                                                                                                             ### Inherited constants                                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` android.widget.FrameLayout.LayoutParams ` |-------|------------------------------| | `int` | `UNSPECIFIED_GRAVITY` <br /> |                                                   |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` android.view.ViewGroup.LayoutParams ` |-------|-----------------------| | `int` | `FILL_PARENT` <br />  | | `int` | `MATCH_PARENT` <br /> | | `int` | `WRAP_CONTENT` <br /> | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` android.widget.FrameLayout.LayoutParams ` |---------------|------------------| | ` public int` | `gravity` <br /> |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` android.view.ViewGroup.MarginLayoutParams ` |---------------|-----------------------| | ` public int` | `bottomMargin` <br /> | | ` public int` | `leftMargin` <br />   | | ` public int` | `rightMargin` <br />  | | ` public int` | `topMargin` <br />    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` android.view.ViewGroup.LayoutParams ` |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------| | ` public int`                                                                                                                                                                | `height` <br />                    | | ` public `[LayoutAnimationController.AnimationParameters](https://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters.html) | `layoutAnimationParameters` <br /> | | ` public int`                                                                                                                                                                | `width` <br />                     | |

|                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` c, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(int, int))`(int width, int height) `                                                                                                                                                                                                         |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(int, int, int))`(int width, int height, int gravity) `                                                                                                                                                                                       |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` source) `                                                                                |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(android.view.ViewGroup.MarginLayoutParams))`(`[ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` source) `                                                              |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(android.widget.FrameLayout.LayoutParams))`(`[FrameLayout.LayoutParams](https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html)` source) `                                                                      |
| ` `[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParams))`(`[PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams)` source) `                                    |

|                                                                                                                                            ### Public methods                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | ` `[getPercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#getPercentLayoutInfo())`() ` |

|                                                                                                                                                     ### Protected methods                                                                                                                                                     ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[setBaseAttributes](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#setBaseAttributes(android.content.res.TypedArray, int, int))`(`[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)` a, int widthAttr, int heightAttr) ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` `[android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` ` |------------|--------------------------------------------------------| | ` int`     | ` getLayoutDirection() `                               | | ` int`     | ` getMarginEnd() `                                     | | ` int`     | ` getMarginStart() `                                   | | ` boolean` | ` isMarginRelative() `                                 | | ` void`    | ` resolveLayoutDirection(int arg0) `                   | | ` void`    | ` setLayoutDirection(int arg0) `                       | | ` void`    | ` setMarginEnd(int arg0) `                             | | ` void`    | ` setMarginStart(int arg0) `                           | | ` void`    | ` setMargins(int arg0, int arg1, int arg2, int arg3) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` `[android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` ` |---------|---------------------------------------------------------------------------------------------------------------------------------------------| | ` void` | ` resolveLayoutDirection(int arg0) `                                                                                                        | | ` void` | ` setBaseAttributes(`[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)` arg0, int arg1, int arg2) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams#)From interface` `[android.support.percent.PercentLayoutHelper.PercentLayoutParams](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams)` ` |------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | ` `[getPercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams#getPercentLayoutInfo())`() ` | ||

## Public constructors

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (Context c, 
                AttributeSet attrs)
```

<br />

<br />

|           Parameters           ||
|---------|-----------------------|
| `c`     | `Context` <br />      |
| `attrs` | `AttributeSet` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (int width, 
                int height)
```

<br />

<br />

|       Parameters       ||
|----------|--------------|
| `width`  | `int` <br /> |
| `height` | `int` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (int width, 
                int height, 
                int gravity)
```

<br />

<br />

|       Parameters        ||
|-----------|--------------|
| `width`   | `int` <br /> |
| `height`  | `int` <br /> |
| `gravity` | `int` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (ViewGroup.LayoutParams source)
```

<br />

<br />

|                Parameters                 ||
|----------|---------------------------------|
| `source` | `ViewGroup.LayoutParams` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
```

<br />

<br />

|                   Parameters                    ||
|----------|---------------------------------------|
| `source` | `ViewGroup.MarginLayoutParams` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (FrameLayout.LayoutParams source)
```

<br />

<br />

|                 Parameters                  ||
|----------|-----------------------------------|
| `source` | `FrameLayout.LayoutParams` <br /> |

### PercentFrameLayout.LayoutParams

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentFrameLayout.LayoutParams (PercentFrameLayout.LayoutParams source)
```

<br />

<br />

|                     Parameters                     ||
|----------|------------------------------------------|
| `source` | `PercentFrameLayout.LayoutParams` <br /> |

## Public methods

### getPercentLayoutInfo

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo ()
```

<br />

<br />

|                                                                        Returns                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | <br /> |

## Protected methods

### setBaseAttributes

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

<br />

<br />

|            Parameters             ||
|--------------|---------------------|
| `a`          | `TypedArray` <br /> |
| `widthAttr`  | `int` <br />        |
| `heightAttr` | `int` <br />        |

-

  ## Interfaces

  - [PercentLayoutHelper.PercentLayoutParams](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams)
-

  ## Classes

  - [PercentFrameLayout](https://developer.android.com/reference/android/support/percent/PercentFrameLayout)
  - [PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams)
  - [PercentLayoutHelper](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper)
  - [PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo)
  - [PercentRelativeLayout](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout)
  - [PercentRelativeLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout.LayoutParams)
  - [R](https://developer.android.com/reference/android/support/percent/R)
  - [R.attr](https://developer.android.com/reference/android/support/percent/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/percent/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/percent/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/percent/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/percent/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/percent/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/percent/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/percent/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/percent/R.string)
  - [R.style](https://developer.android.com/reference/android/support/percent/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/percent/R.styleable)