我一直在研究新的谷歌支持设计库。我正在挣扎如何使导航条半透明,并显示内容的recyclerView下的酒吧。
我正在5.1附件5上进行测试。我使用下面的项目作为测试项目。Chris的示例代码:https://github.com/chrisbanes/cheesesquare
我将以下内容添加到styles.xml中
<item name="android:windowTranslucentNavigation">true</item>使导航条半透明。
但是,我不能让CoordinatorLayout和它的内容recyclerView显示在酒吧下面。
我想要的:
发布于 2015-06-04 10:02:30
Android的问题跟踪器上有一个相关的问题,但它特别指出了API level 21:https://code.google.com/p/android/issues/detail?id=175069
如果设备上的android:fitsSystemWindows="true"工作正常,但唯一的问题是状态栏后面没有显示RecyclerView,请尝试设置
android:clipToPadding="false"
android:clipChildren="false"在RecyclerView上或者它的父母之一
https://stackoverflow.com/questions/30599186
复制相似问题