# BoxInsetLayout.LayoutParams

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

# BoxInsetLayout.LayoutParams

`
public
static


class
BoxInsetLayout.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.BoxInsetLayout.LayoutParams |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use the`androidx.wear.widget.BoxInsetLayout`provided by[Jetpack Wear](https://developer.android.com/jetpack/androidx/releases/wear)library instead.

adds`layout_box`attribute to layout parameters

## Summary

|                                                                 ### Constants                                                                 ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [BOX_ALL](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_ALL) <br />       |
| `int` | [BOX_BOTTOM](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_BOTTOM) <br /> |
| `int` | [BOX_LEFT](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_LEFT) <br />     |
| `int` | [BOX_NONE](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_NONE) <br />     |
| `int` | [BOX_RIGHT](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_RIGHT) <br />   |
| `int` | [BOX_TOP](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#BOX_TOP) <br />       |

|                                                                                 ### 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` | [boxedEdges](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#boxedEdges) <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/BoxInsetLayout.LayoutParams.html#LayoutParams(android.content.Context,%20android.util.AttributeSet))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(int,%20int))`(int width, int height) `                                                                                                                                                                                                             |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(int,%20int,%20int))`(int width, int height, int gravity) `                                                                                                                                                                                         |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(int,%20int,%20int,%20int))`(int width, int height, int gravity, int boxed) `                                                                                                                                                                       |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` source) `                                                                                       |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(android.view.ViewGroup.MarginLayoutParams))`(`[ViewGroup.MarginLayoutParams](http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` source) `                                                                     |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(android.widget.FrameLayout.LayoutParams))`(`[FrameLayout.LayoutParams](http://developer.android.com/reference/android/widget/FrameLayout.LayoutParams.html)` source) `                                                                             |
| ` `[LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html#LayoutParams(android.support.wearable.view.BoxInsetLayout.LayoutParams))`(`[BoxInsetLayout.LayoutParams](https://developer.android.com/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html)` source) `                                     |

| ### 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() `                                                                                | ||

## Constants

### BOX_ALL

```
public static final int BOX_ALL
```

<br />

<br />

Constant Value: 15 (0x0000000f)  

### BOX_BOTTOM

```
public static final int BOX_BOTTOM
```

<br />

<br />

Constant Value: 8 (0x00000008)  

### BOX_LEFT

```
public static final int BOX_LEFT
```

<br />

<br />

Constant Value: 1 (0x00000001)  

### BOX_NONE

```
public static final int BOX_NONE
```

<br />

<br />

Constant Value: 0 (0x00000000)  

### BOX_RIGHT

```
public static final int BOX_RIGHT
```

<br />

<br />

Constant Value: 4 (0x00000004)  

### BOX_TOP

```
public static final int BOX_TOP
```

<br />

<br />

Constant Value: 2 (0x00000002)

## Fields

### boxedEdges

```
public int boxedEdges
```

<br />

<br />

## Public constructors

### LayoutParams

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

<br />

<br />

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

### LayoutParams

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

<br />

<br />

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

### 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, 
                int gravity, 
                int boxed)
```

<br />

<br />

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

### LayoutParams

```
public LayoutParams (ViewGroup.LayoutParams source)
```

<br />

<br />

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

### LayoutParams

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

<br />

<br />

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

### LayoutParams

```
public LayoutParams (FrameLayout.LayoutParams source)
```

<br />

<br />

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

### LayoutParams

```
public LayoutParams (BoxInsetLayout.LayoutParams source)
```

<br />

<br />

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