# PercentFrameLayout.LayoutParams

Artifact: [androidx.percentlayout:percentlayout](https://developer.android.com/jetpack/androidx/releases/percentlayout) [View Source](https://cs.android.com/search?q=file:androidx/percentlayout/widget/PercentFrameLayout.java+class:androidx.percentlayout.widget.PercentFrameLayout.LayoutParams) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

*** ** * ** ***


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

<br />

|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||
| ↳ | [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) ||
|   |   |   | ↳ | [androidx.percentlayout.widget.PercentFrameLayout.LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> this class is deprecated along with its parent class.

## Summary

| ### Public constructors |
|---|
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.widget.FrameLayout.LayoutParams))(https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html source)` **This method is deprecated.** Deprecated in Java |
| `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 19) [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(androidx.percentlayout.widget.PercentFrameLayout.LayoutParams))(https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams source)` **This method is deprecated.** Deprecated in Java |
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.view.ViewGroup.LayoutParams))(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html source)` **This method is deprecated.** Deprecated in Java |
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.view.ViewGroup.MarginLayoutParams))(https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html source)` **This method is deprecated.** Deprecated in Java |
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.content.Context,android.util.AttributeSet))(https://developer.android.com/reference/android/content/Context.html c, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` **This method is deprecated.** Deprecated in Java |
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(int,int))(int width, int height)` **This method is deprecated.** Deprecated in Java |
| `[LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(int,int,int))(int width, int height, int gravity)` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/percentlayout/widget/PercentLayoutHelper.PercentLayoutInfo` | `[getPercentLayoutInfo](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#getPercentLayoutInfo())()` **This method is deprecated.** Deprecated in Java |

| ### Protected methods |
|---|---|
| `void` | `[setBaseAttributes](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#setBaseAttributes(android.content.res.TypedArray,int,int))(https://developer.android.com/reference/android/content/res/TypedArray.html a, int widthAttr, int heightAttr)` **This method is deprecated.** Deprecated in Java |

### Inherited Constants

From [android.widget.FrameLayout.LayoutParams](https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html) `static final int` `https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html#UNSPECIFIED_GRAVITY = -1`

**This field is deprecated.** Deprecated in Java
From [android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html) `static final int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#FILL_PARENT = -1`

**This field is deprecated.**
`static final int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT = -1`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT = -2`

**This field is deprecated.** Deprecated in Java

### Inherited fields

From [android.widget.FrameLayout.LayoutParams](https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html) `int` `https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html#gravity`

**This field is deprecated.** Deprecated in Java
From [android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html) `int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#height`

**This field is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters.html` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#layoutAnimationParameters`

**This field is deprecated.** Deprecated in Java
`int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#width`

**This field is deprecated.** Deprecated in Java
From [android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html) `int` `https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#bottomMargin`

**This field is deprecated.** Deprecated in Java
`int` `https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#leftMargin`

**This field is deprecated.** Deprecated in Java
`int` `https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#rightMargin`

**This field is deprecated.** Deprecated in Java
`int` `https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#topMargin`

**This field is deprecated.** Deprecated in Java

### Inherited methods

From [android.view.ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html) `int` `[getLayoutDirection](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#getLayoutDirection())()`

**This method is deprecated.** Deprecated in Java
`int` `[getMarginEnd](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#getMarginEnd())()`

**This method is deprecated.** Deprecated in Java
`int` `[getMarginStart](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#getMarginStart())()`

**This method is deprecated.** Deprecated in Java
`boolean` `[isMarginRelative](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#isMarginRelative())()`

**This method is deprecated.** Deprecated in Java
`void` `[resolveLayoutDirection](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#resolveLayoutDirection(int))(int layoutDirection)`

**This method is deprecated.** Deprecated in Java
`void` `[setLayoutDirection](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#setLayoutDirection(int))(int layoutDirection)`

**This method is deprecated.** Deprecated in Java
`void` `[setMarginEnd](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#setMarginEnd(int))(int end)`

**This method is deprecated.** Deprecated in Java
`void` `[setMarginStart](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#setMarginStart(int))(int start)`

**This method is deprecated.** Deprecated in Java
`void` `[setMargins](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#setMargins(int, int, int, int))(int left, int top, int right, int bottom)`

**This method is deprecated.** Deprecated in Java

## Public constructors

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.widget.FrameLayout.LayoutParams))(FrameLayout.LayoutParams source)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
@RequiresApi(value = 19)
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(androidx.percentlayout.widget.PercentFrameLayout.LayoutParams))(PercentFrameLayout.LayoutParams source)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.view.ViewGroup.LayoutParams))(ViewGroup.LayoutParams source)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.view.ViewGroup.MarginLayoutParams))(ViewGroup.MarginLayoutParams source)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(android.content.Context,android.util.AttributeSet))(Context c, AttributeSet attrs)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(int,int))(int width, int height)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

### LayoutParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.0.0)

```
public [LayoutParams](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#LayoutParams(int,int,int))(int width, int height, int gravity)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

## Public methods

### getPercentLayoutInfo

Added in [1.1.0-alpha01](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.1.0-alpha01) Deprecated in [1.1.0-alpha01](https://developer.android.com/jetpack/androidx/releases/percentlayout#1.1.0-alpha01)

```
public PercentLayoutHelper.PercentLayoutInfo [getPercentLayoutInfo](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#getPercentLayoutInfo())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

## Protected methods

### setBaseAttributes

```
protected void [setBaseAttributes](https://developer.android.com/reference/androidx/percentlayout/widget/PercentFrameLayout.LayoutParams#setBaseAttributes(android.content.res.TypedArray,int,int))(TypedArray a, int widthAttr, int heightAttr)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java