# WearableFrameLayout.LayoutParams

Summary:[Inherited Constants](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams#lfields)\|[Inherited Fields](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams#inhfields)\|[Ctors](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams#inhmethods)  

# WearableFrameLayout.LayoutParams

`
public
static


class
WearableFrameLayout.LayoutParams
`  
`


``


``


``

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


``


`

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

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
starting with API 23 the sdk supports "round" and "notround" configuration qualifiers which are preferred. For more information about configuration qualifiers, see<https://developer.android.com/guide/topics/resources/providing-resources.html>

Per-child layout information for layouts on wearable devices.

## Summary

|                                                                                 ### Inherited constants                                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class`android.widget.FrameLayout.LayoutParams` |-------|------------------------------| | `int` | `UNSPECIFIED_GRAVITY` <br /> |                                                   |
| From class`android.view.ViewGroup.LayoutParams` |-------|-----------------------| | `int` | `FILL_PARENT` <br />  | | `int` | `MATCH_PARENT` <br /> | | `int` | `WRAP_CONTENT` <br /> | |

|                                                                                                                          ### Fields                                                                                                                           ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public int` | [bottomMarginRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#bottomMarginRound) <br />                                                                                      |
| ` public int` | [gravityRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#gravityRound) The gravity to apply with the View to which these layout parameters are associated on a round device. |
| ` public int` | [heightRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#heightRound) <br />                                                                                                  |
| ` public int` | [leftMarginRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#leftMarginRound) <br />                                                                                          |
| ` public int` | [rightMarginRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#rightMarginRound) <br />                                                                                        |
| ` public int` | [topMarginRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#topMarginRound) <br />                                                                                            |
| ` public int` | [widthRound](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#widthRound) <br />                                                                                                    |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class`android.widget.FrameLayout.LayoutParams` |---------------|------------------| | ` public int` | `gravity` <br /> |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| From class`android.view.ViewGroup.MarginLayoutParams` |---------------|-----------------------| | ` public int` | `bottomMargin` <br /> | | ` public int` | `leftMargin` <br />   | | ` public int` | `rightMargin` <br />  | | ` public int` | `topMargin` <br />    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| From class`android.view.ViewGroup.LayoutParams` |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------| | ` public int`                                                                                                                                                               | `height` <br />                    | | ` public `[LayoutAnimationController.AnimationParameters](http://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters.html) | `layoutAnimationParameters` <br /> | | ` public int`                                                                                                                                                               | `width` <br />                     | |

|                                                                                                                                                                                        ### Public constructors                                                                                                                                                                                         ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#LayoutParams(android.content.Context,%20android.util.AttributeSet))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` c, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` <br />      |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#LayoutParams(int,%20int,%20int,%20int,%20int,%20int))`(int width, int height, int gravity, int widthRound, int heightRound, int gravityRound) ` Creates a new set of layout parameters with the specified width, height and weight for both square and round devices. |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#LayoutParams(int,%20int,%20int))`(int width, int height, int gravity) ` <br />                                                                                                                                                                                        |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#LayoutParams(int,%20int))`(int width, int height) ` <br />                                                                                                                                                                                                            |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html#LayoutParams(android.support.wearable.view.WearableFrameLayout.LayoutParams))`(`[WearableFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html)` source) ` <br />                     |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.view.ViewGroup.MarginLayoutParams](http://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) ` | ||
| From class` `[android.view.ViewGroup.LayoutParams](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` ` |---------|--------------------------------------------------------------------------------------------------------------------------------------------| | ` void` | ` resolveLayoutDirection(int arg0) `                                                                                                       | | ` void` | ` setBaseAttributes(`[TypedArray](http://developer.android.com/reference/android/content/res/TypedArray.html)` arg0, int arg1, int arg2) ` | ||
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Fields

### bottomMarginRound

```
public int bottomMarginRound
```

<br />

<br />

### gravityRound

```
public int gravityRound
```

The gravity to apply with the View to which these layout parameters are associated on a round device.

<br />

**See also:**

- [Gravity](http://developer.android.com/reference/android/view/Gravity.html)  

### heightRound

```
public int heightRound
```

<br />

<br />

### leftMarginRound

```
public int leftMarginRound
```

<br />

<br />

### rightMarginRound

```
public int rightMarginRound
```

<br />

<br />

### topMarginRound

```
public int topMarginRound
```

<br />

<br />

### widthRound

```
public int widthRound
```

<br />

<br />

## Public constructors

### LayoutParams

```
public LayoutParams (Context c, 
                AttributeSet attrs)
```

<br />

<br />

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

### LayoutParams

```
public LayoutParams (int width, 
                int height, 
                int gravity, 
                int widthRound, 
                int heightRound, 
                int gravityRound)
```

Creates a new set of layout parameters with the specified width, height and weight for both square and round devices.

<br />

|                                                                                                                                                                                  Parameters                                                                                                                                                                                  ||
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `width`        | `int`: the width on a square device, either[ViewGroup.LayoutParams.MATCH_PARENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT),[ViewGroup.LayoutParams.WRAP_CONTENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT)or a fixed size in pixels <br />           |
| `height`       | `int`: the height, either[ViewGroup.LayoutParams.MATCH_PARENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT),[ViewGroup.LayoutParams.WRAP_CONTENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT)or a fixed size in pixels <br />                             |
| `gravity`      | `int`: the gravity <br />                                                                                                                                                                                                                                                                                                                                    |
| `widthRound`   | `int`: the width override for a round device, either[ViewGroup.LayoutParams.MATCH_PARENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT),[ViewGroup.LayoutParams.WRAP_CONTENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT)or a fixed size in pixels <br />  |
| `heightRound`  | `int`: the height override for a round device, either[ViewGroup.LayoutParams.MATCH_PARENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT),[ViewGroup.LayoutParams.WRAP_CONTENT](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT)or a fixed size in pixels <br /> |
| `gravityRound` | `int`: the gravity override for a round device <br />                                                                                                                                                                                                                                                                                                        |

**See also:**

- [Gravity](http://developer.android.com/reference/android/view/Gravity.html)  

### LayoutParams

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

<br />

<br />

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

### LayoutParams

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

<br />

<br />

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

### LayoutParams

```
public LayoutParams (WearableFrameLayout.LayoutParams source)
```

<br />

<br />

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