广东官网网站建设企业,网站关键词怎么快速上排名,东莞市网络营销广告公司,东营网站建设方案策划碰到一个问题#xff0c;请看截图。 下面两张是Fuubo微博客户端的截图#xff0c;底部导航栏都是透明的。 第一张截图中#xff0c;侧边栏出来后#xff0c;被底部导航栏遮住的地方是可见的。 第二张截图中#xff0c;被导航栏遮住的文字内容#xff0c;也是可见的。 下边… 碰到一个问题请看截图。 下面两张是Fuubo微博客户端的截图底部导航栏都是透明的。 第一张截图中侧边栏出来后被底部导航栏遮住的地方是可见的。 第二张截图中被导航栏遮住的文字内容也是可见的。 下边是一个Demo(直接clone Github上的cheesesquare这是地址) 第一张截图侧边栏出来后跟Fuubo一样被底部导航栏遮住的地方是可见的。 第二张截图被导航栏遮住的文字内容是不可见的。 我在xml中设置的主题是 item nameandroid:windowDrawsSystemBarBackgroundstrue/item item nameandroid:windowTranslucentNavigationtrue/item item nameandroid:statusBarColorandroid:color/transparent/item item nameandroid:navigationBarColorandroid:color/transparent/item 如何才能让被导航栏遮住的文字内容可见就像Fuubo那样。 谢谢 补充 刚刚又写了一个Demo一个Activity中只放一个Recylerview同样在values-v21采用的是上述属性效果如图。 第一个Demo是直接Clone GitHUb的这个cheesesquare 暂时还不清楚为什么同样的属性它不能做到透明的效果。 搬运工(手上没API19的机器无法测试不过我感觉是这个原因 Android 4.4 实现透明状态栏和导航栏 Translucent system bar In the layout containing your list, add two attributes to your ListView: ?xml version”1.0″ encoding”utf-8″? ListView android:fitsSystemWindows”true” android:clipToPadding”false” / The fitsSystemWindows attribute makes your ListView fit to the edges of the action bar and navigation bar (instead of going under them), and clipToPadding makes items of your ListViews and ScrollViews scroll under the navigation bar (and allows the last item in the list scroll all the way up until it just passes the navigation bar). These attributes can also be added to your actual theme (in /values-v19/styles.xml), but that may not be right for all cases. Update Recylerview 是放在 ViewPager 中的ViewPager 又是放在 CoordinatorLayout 中的然后把上述两个属性加到 CoordinatorLayout 中实现透明导航栏。而加在ViewPager中却不可以。看来还是针对父视图才有效。(当然还得把你问题中的配置加到 styles-v21.xml中) layout/include_list_viewpager.xml android.support.design.widget.CoordinatorLayout android:idid/main_content android:fitsSystemWindowstrue android:clipToPaddingtrue android.support.v4.view.ViewPager android:idid/viewpager / /android.support.design.widget.CoordinatorLayout Done 多测试就出来结果啦 少年~ 楼上说的差不多了补充一个细节给ListView设置个paddBottom这样在数据滑到底部的时候不会被底部NavigationBar遮挡。