TitleBarView 横竖屏切换刘海屏适配问题
QinAndroid opened this issue · comments
Mr.Best commented
华为P20 刘海屏,竖屏显示正常,但是切换到横屏之后 会显示异常 我用demo试了 也一样存在异常
Aries Hoo²⁰²¹ commented
竖屏啥问题,发个截图看看
Mr.Best commented
Mr.Best commented
横屏之后 左边就被遮挡了 竖屏是没问题的
Aries Hoo²⁰²¹ commented
这个没有问题的,这个横屏需要自己去处理,通过 NotchUtil.getSafeInsetLeft()等属性,去处理,或者不使用刘海屏 StatusBarUtil.fitsNotchScreen();库哪里知道哪个View需要设置padding规避,还有建议手机应用尽量强制竖屏可能比较好,除非播放视频
Mr.Best commented
嗯,谢谢 ,提供的demo 中 有对这块的说明吗?
Aries Hoo²⁰²¹ commented
木有,后面在demo主页添加相应说明