androidx.slidingpanelayout:slidingpanelayout

Official Description: The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.

CommonsWare’s Notes

This artifact contains an AndroidX edition of the framework SlidingPaneLayout container.

SlidingPaneLayout works a lot like a nav drawer, with two panes of content that overlap. However, the idea behind SlidingPaneLayout is that if the screen is wide enough, both panes will be visible at once. As a result, SlidingPaneLayout targets list-and-detail sorts of user interfaces. The JavaDocs go to great lengths to steer you away from using this for cases where a nav drawer (e.g., DrawerLayout) would be more appropriate.

As with many Jetpack libraries, this one originated in the Android Support Library. If you see referneces to android.support.v4.widget.SlidingPaneLayout, that is the older Android Support Library edition, and you should aim to use androidx.slidingpanelayout.SlidingPaneLayout instead.

Documentation

Knowledge

Versions