Slidingpanelayout
Latest Update | Current Stable Release | Next Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
March 24, 2021 | 1.1.0 | - | - | 1.2.0-alpha01 |
Declaring dependencies
To add a dependency on SlidingPaneLayout, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
dependencies { implementation "androidx.slidingpanelayout:slidingpanelayout:1.2.0-alpha01" }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Version 1.2.0
Version 1.2.0-alpha01
March 24, 2021
androidx.slidingpanelayout:slidingpanelayout:1.2.0-alpha01
is released. Version 1.2.0-alpha01 contains these commits.
New Features
SlidingPaneLayout
is now fold-aware. On a foldable device,SlidingPaneLayout
will automatically adjust the size of the two panes so that the panes are on either side of the fold, hinge, etc.
Behavior Changes
SlidingPaneLayout
now has a new UI styling when the two panes overlap. Each pane will now extend from edge to edge, with the detail or secondary pane fully covering the list or primary pane when theSlidingPaneLayout
is open. APIs specific to the old UI styling, such as the fade color, have been deprecated. (Ia60ce)SlidingPaneLayout
now defaults to ‘closed’ - i.e., showing the list or primary pane. Callingopen()
oropenPane()
will now show the detail or secondary pane. (I5d26c)
API Changes
- SlidingPaneLayout now allows registering multiple PanelSlideListeners. (I50ce2)
- Developers can now control whether users can swipe between the list and detail panes by setting a lock mode. (Idf2fd, I5d26c)
Version 1.1.0
Version 1.1.0
June 24, 2020
androidx.slidingpanelayout:slidingpanelayout:1.1.0
is released. Version 1.1.0 contains these commits.
Major changes since 1.0.0
SlidingPaneLayout
now implements theOpenable
interface added in CustomView1.1.0
.
Version 1.1.0-rc01
May 20, 2020
androidx.slidingpanelayout:slidingpanelayout:1.1.0-rc01
is released with no changes since 1.1.0-beta01
. Version 1.1.0-rc01 contains these commits.
Version 1.1.0-beta01
April 1, 2020
androidx.slidingpanelayout:slidingpanelayout:1.1.0-beta01
is released with no changes since 1.1.0-alpha01
. Version 1.1.0-beta01 contains these commits.
Version 1.1.0-alpha01
March 18, 2020
androidx.slidingpanelayout:slidingpanelayout:1.1.0-alpha01
is released. Version 1.1.0-alpha01 contains these commits.
API Changes
SlidingPaneLayout
now implements theOpenable
interface added in CustomView1.1.0-alpha02
, mirroring the change in DrawerLayout1.1.0-alpha04
. (b/129979320)