我知道如何使用 android 设计库实现折叠工具栏。 但是我如何实现折叠底部栏,就像在 googles play music app 中实现的那样? ?
最佳答案
虽然我迟到了,但仍然可以帮助你
尝试此处提供的 AndroidSlidingPanelLibrary https://github.com/umano/AndroidSlidingUpPanel
将以下依赖项添加到您的 build.gradle 文件以使用最新版本:
dependencies {
repositories {
mavenCentral()
}
compile 'com.sothree.slidinguppanel:library:3.2.0'
}
并将 com.sothree.slidinguppanel.SlidingUpPanelLayout
设置为 Activity 布局中的根元素。
有关详细信息,请参阅上述链接上的文档。
另请参阅此答案,
关于android - Android 中的折叠底栏(如 Google Music),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32602894/