# SlidingPaneLayout.SimplePanelSlideListener

# SlidingPaneLayout.SimplePanelSlideListener

Artifact:[androidx.slidingpanelayout:slidingpanelayout](https://developer.android.com/jetpack/androidx/releases/slidingpanelayout)  
[View Source](https://cs.android.com/search?q=file:androidx/slidingpanelayout/widget/SlidingPaneLayout.java+class:androidx.slidingpanelayout.widget.SlidingPaneLayout.SimplePanelSlideListener)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/slidingpanelayout#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/slidingpanelayout/widget/SlidingPaneLayout.SimplePanelSlideListener "View this page in Java")

<br />

```
class SlidingPaneLayout.SimplePanelSlideListener : SlidingPaneLayout.PanelSlideListener
```

<br />

*** ** * ** ***

No-op stubs for[PanelSlideListener](https://developer.android.com/reference/kotlin/androidx/slidingpanelayout/widget/SlidingPaneLayout.PanelSlideListener). If you only want to implement a subset of the listener methods you can extend this instead of implement the full interface.

## Summary

|                                                                                ### Public constructors                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SimplePanelSlideListener](https://developer.android.com/reference/kotlin/androidx/slidingpanelayout/widget/SlidingPaneLayout.SimplePanelSlideListener#SimplePanelSlideListener())`()` |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onPanelClosed](https://developer.android.com/reference/kotlin/androidx/slidingpanelayout/widget/SlidingPaneLayout.SimplePanelSlideListener#onPanelClosed(android.view.View))`(panel: `[View](https://developer.android.com/reference/android/view/View.html)`)` Called when a detail view becomes slid completely closed.                                                                                         |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onPanelOpened](https://developer.android.com/reference/kotlin/androidx/slidingpanelayout/widget/SlidingPaneLayout.SimplePanelSlideListener#onPanelOpened(android.view.View))`(panel: `[View](https://developer.android.com/reference/android/view/View.html)`)` Called when a detail view becomes slid completely open.                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onPanelSlide](https://developer.android.com/reference/kotlin/androidx/slidingpanelayout/widget/SlidingPaneLayout.SimplePanelSlideListener#onPanelSlide(android.view.View,float))`(panel: `[View](https://developer.android.com/reference/android/view/View.html)`, slideOffset: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Called when a detail view's position changes. |

## Public constructors

### SimplePanelSlideListener

Added in 1.1.0  

```
SimplePanelSlideListener()
```  

## Public functions

### onPanelClosed

Added in[1.3.0-alpha01](https://developer.android.com/jetpack/androidx/releases/slidingpanelayout#1.3.0-alpha01)  

```
fun onPanelClosed(panel: View): Unit
```

Called when a detail view becomes slid completely closed.  

|                                   Parameters                                    |
|---------------------------------------------------------------------------------|----------------------------------------------------|
| `panel: `[View](https://developer.android.com/reference/android/view/View.html) | The detail view that was slid to a closed position |

### onPanelOpened

Added in[1.3.0-alpha01](https://developer.android.com/jetpack/androidx/releases/slidingpanelayout#1.3.0-alpha01)  

```
fun onPanelOpened(panel: View): Unit
```

Called when a detail view becomes slid completely open.  

|                                   Parameters                                    |
|---------------------------------------------------------------------------------|---------------------------------------------------|
| `panel: `[View](https://developer.android.com/reference/android/view/View.html) | The detail view that was slid to an open position |

### onPanelSlide

Added in[1.3.0-alpha01](https://developer.android.com/jetpack/androidx/releases/slidingpanelayout#1.3.0-alpha01)  

```
fun onPanelSlide(panel: View, slideOffset: Float): Unit
```

Called when a detail view's position changes.  

|                                           Parameters                                           |
|------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
| `panel: `[View](https://developer.android.com/reference/android/view/View.html)                | The child view that was moved                                  |
| `slideOffset: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The new offset of this sliding pane within its range, from 0-1 |