Pixel手机+Android7.0无法正常显示
Closed this issue · 7 comments
metromancn commented
比如显示ABCD......Z时,6.0版会在屏幕中间显示,Pixel手机+Android7.0测试时总是顶着状态栏显示,无法居中。
metromancn commented
gjiazhe commented
请为布局文件中的 WaveSideBar 加上 android:layout_below = "@id/toolbar" 属性
metromancn commented
加了也没有用。只对Android7.0+才会出现这样的现象。Android6.0,5.0都正常。
gjiazhe commented
在
<include layout="@layout/include_toolbar" android:id="@+id/toolbar"/>
中加入
android:layout_height="wrap_content" android:layout_width="match_parent"
gjiazhe commented
然后 WaveSideBar 加上 android:layout_below = "@id/toolbar"
metromancn commented
神奇的好了,谢谢大神。看来是由于我使用了include,它的layout属性写在了include文件里面,安卓7.0时外面的页面无法自动识别。
metromancn commented