# SlidingPaneLayout.LayoutParams

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:slidingpanelayout:28.0.0-alpha1  
Summary:[Inherited Constants](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#lfields)\|[Inherited Fields](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#inhfields)\|[Ctors](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#)  

# SlidingPaneLayout.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
SlidingPaneLayout.LayoutParams
`  
`


``


``

extends `[ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)`


``


`

|---|---|---|----------------------------------------------------------|
| 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.support.v4.widget.SlidingPaneLayout.LayoutParams |

<br />

*** ** * ** ***

## Summary

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

|                                                                                                                ### Fields                                                                                                                 ||
|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public float` | [weight](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#weight) The weighted proportion of how much of the leftover space this child should consume after measurement. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.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/v4/widget/SlidingPaneLayout.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                                                                                                                                                                                               ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.LayoutParams())`() `                                                                                                                                                                                                                                      |
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.LayoutParams(int, int))`(int width, int height) `                                                                                                                                                                                                         |
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.LayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` source) `                                                                                |
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.LayoutParams(android.view.ViewGroup.MarginLayoutParams))`(`[ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html)` source) `                                                              |
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.LayoutParams(android.support.v4.widget.SlidingPaneLayout.LayoutParams))`(`[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams)` source) `                                   |
| ` `[SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams#SlidingPaneLayout.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) ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.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/v4/widget/SlidingPaneLayout.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/v4/widget/SlidingPaneLayout.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() `                    | ||

## Fields

### weight

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

```
float weight
```

The weighted proportion of how much of the leftover space this child should consume after measurement.

<br />

## Public constructors

### SlidingPaneLayout.LayoutParams

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

```
SlidingPaneLayout.LayoutParams ()
```

<br />

<br />

### SlidingPaneLayout.LayoutParams

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

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

<br />

<br />

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

### SlidingPaneLayout.LayoutParams

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

```
SlidingPaneLayout.LayoutParams (ViewGroup.LayoutParams source)
```

<br />

<br />

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

### SlidingPaneLayout.LayoutParams

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

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

<br />

<br />

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

### SlidingPaneLayout.LayoutParams

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

```
SlidingPaneLayout.LayoutParams (SlidingPaneLayout.LayoutParams source)
```

<br />

<br />

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

### SlidingPaneLayout.LayoutParams

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

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

<br />

<br />

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

-

  ## Interfaces

  - [DrawerLayout.DrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.DrawerListener)
  - [NestedScrollView.OnScrollChangeListener](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.OnScrollChangeListener)
  - [SimpleCursorAdapter.CursorToStringConverter](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.CursorToStringConverter)
  - [SimpleCursorAdapter.ViewBinder](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.ViewBinder)
  - [SlidingPaneLayout.PanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.PanelSlideListener)
  - [SwipeRefreshLayout.OnChildScrollUpCallback](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnChildScrollUpCallback)
  - [SwipeRefreshLayout.OnRefreshListener](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnRefreshListener)
  - [TintableCompoundButton](https://developer.android.com/reference/android/support/v4/widget/TintableCompoundButton)
-

  ## Classes

  - [AutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/AutoScrollHelper)
  - [CircularProgressDrawable](https://developer.android.com/reference/android/support/v4/widget/CircularProgressDrawable)
  - [CompoundButtonCompat](https://developer.android.com/reference/android/support/v4/widget/CompoundButtonCompat)
  - [ContentLoadingProgressBar](https://developer.android.com/reference/android/support/v4/widget/ContentLoadingProgressBar)
  - [CursorAdapter](https://developer.android.com/reference/android/support/v4/widget/CursorAdapter)
  - [DrawerLayout](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout)
  - [DrawerLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.LayoutParams)
  - [DrawerLayout.SavedState](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SavedState)
  - [DrawerLayout.SimpleDrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SimpleDrawerListener)
  - [EdgeEffectCompat](https://developer.android.com/reference/android/support/v4/widget/EdgeEffectCompat)
  - [ExploreByTouchHelper](https://developer.android.com/reference/android/support/v4/widget/ExploreByTouchHelper)
  - [ImageViewCompat](https://developer.android.com/reference/android/support/v4/widget/ImageViewCompat)
  - [ListPopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/ListPopupWindowCompat)
  - [ListViewAutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/ListViewAutoScrollHelper)
  - [ListViewCompat](https://developer.android.com/reference/android/support/v4/widget/ListViewCompat)
  - [NestedScrollView](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView)
  - [PopupMenuCompat](https://developer.android.com/reference/android/support/v4/widget/PopupMenuCompat)
  - [PopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/PopupWindowCompat)
  - [ResourceCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/ResourceCursorAdapter)
  - [ScrollerCompat](https://developer.android.com/reference/android/support/v4/widget/ScrollerCompat)
  - [SimpleCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter)
  - [SlidingPaneLayout](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout)
  - [SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams)
  - [SlidingPaneLayout.SimplePanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.SimplePanelSlideListener)
  - [Space](https://developer.android.com/reference/android/support/v4/widget/Space)
  - [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout)
  - [TextViewCompat](https://developer.android.com/reference/android/support/v4/widget/TextViewCompat)
  - [ViewDragHelper](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper)
  - [ViewDragHelper.Callback](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper.Callback)