android-如何在所有内容之上进行布局而不透明

标签 android slidingdrawer slidingmenu android-sliding

我正在通过在以下位置 fork SlidingUpPanel 来为 android 开发底部工具栏:

https://github.com/umano/AndroidSlidingUpPanel

我想让它始终位于我的向上滑动面板中未定义的所有内容之上。但是当我向上滑动它时,如果它后面有东西,我的布局就像是透明的一样。我怎样才能使它像真正的工具栏一样工作?

滑动前: enter image description here

滑动后: enter image description here

来源:http://www.4shared.com/rar/jeA2gbZy/androidslidinguppanel-master.html

最佳答案

在向上滑动面板的 Root View 中添加一个 onClickListener。我这样做了并且效果很好,希望它也适合你。

关于android-如何在所有内容之上进行布局而不透明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18255976/

相关文章:

java - Umano 的 SlidingUpPanelLayout : Got a weird error in XML when I used it

android - 如何在 Button 的点击事件中打开滑动菜单?

android - FusedLocationProviderClient RemoveLocationUpdatesAsync 任务未完成

本地图区域自动移动时,Android map v2 变得低质量

android - RTL-Layout 中忽略准则(Android Constraint-Layout)

android - 下载 sqlite 文件并在我的 android 应用程序中使用它

安卓上滑 View

android - 如何通过另一个 Activity 中的 Intent 打开 fragment 类?

android - 崩溃 fragment

android - Crouton + SlidingMenu重叠