Closed wznshuai closed 8 years ago
@wznshuai 抱歉一直没回复,这个issue暂时开着,后面我考虑通过重写一个fitSystemWindows来看看这个问题,解决了会通知你 : )
@laobie HI 你好 我fork了你的项目,并且5.0以上沉浸模式和着色模式修改了实现方式,解决了之前所有的问题,有时间可以看一下是否还有什么问题 https://github.com/wznshuai/StatusBarUtil
@wznshuai 你可以提pr过来的
demo 中 ImageStatusBarActivity,现有的XML外面在包一层任意的根节点(ps:LinearLayout、RelativeLayout),在N5手机(6.0)上状态栏看起来就不是透明的,因为猴子图片没有顶上去,除非新加的根节点设置这张猴子图片。 那么我想问的是 是什么造成原有的图片没有match_parent呢 明明是这么设置的。。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorAccent" android:orientation="vertical"></LinearLayout>