

Slidingpanelayout | Android Developers
source link: https://developer.android.com/jetpack/androidx/releases/slidingpanelayout
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Slidingpanelayout
Implement a sliding pane UI pattern.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha ReleaseMay 5, 2021
-
-
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-alpha02"
}
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-alpha02
May 5, 2021
androidx.slidingpanelayout:slidingpanelayout:1.2.0-alpha02
is released. Version 1.2.0-alpha02 contains these commits.
Bug Fixes
SlidingPaneLayout
now takes into account folding features that have a non-zero width. (847cc2)SlidingPaneLayout
now expands the drag edge size when gesture navigation is enabled, mirroring the behavior ofDrawerLayout
. (2c6d24)- The open and closed state of
SlidingPaneLayout
is now preserved even if it is changed when the device is non-slidable (i.e., when both panes are shown side by side), thus ensuring that users will continue to see the detail screen when they rotate their device or otherwise switch to a smaller display. (b15eda) - Fix lock mode behavior (Ic01dc)
External Contributions
- Thanks Cesar Valiente for fixing
SlidingPaneLayout
to now take into account folding features that have a non-zero width. (847cc2)
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)
Recommend
-
149
Distribution dashboard Thank you for your patience! We're working to improve the insights we provide to you about the Android ecosystem and the ways...
-
111
Professionals | Community Groups Programs | Google Developers
-
144
These are the Best Pixel Phones to buy in 2022 Google Pixel phones are often ranked as the “god tier” of the
-
97
Making Pixel better for Drivers 09 November 2017 ...
-
143
Final preview of Android 8.1 now available 27 November 2...
-
128
-
125
Welcoming Android 8.1 Oreo and Android Oreo (Go edition)
-
66
New Products At CES powered by Android Things By Venkat Rapaka, Director of Product Management, Google The Android Things team has been working closely with our partners to create compelling, secure and...
-
60
Learn how to use the Wi-Fi Aware API.
-
8
Foldable SlidingPaneLayout Cesar ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK