-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
全面屏底部有黑条 #56
Comments
先不依赖框架,看看还有黑条不,如果关了框架就没有黑条不,那就试试在使用框架的情况下将 ConstraintLayout 替换成 LinearLayout,框架只是更改了 density,density 只会影响布局中 dp 换算成 px 的过程,所以这个方案和 View 或者什么全面屏、刘海屏理论上来说并不存着任何关联关系,所以认真检察下是不是 View 或者哪个地方没设置对 |
试试在功能清单里设置最大纵横比2.1有没有效果 |
找到问题的关键了 targetSdkVersion >= 24 才支持全面屏的
|
👌 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Bug Description:
有一点不太明白,我是用的宽度适配,我布局设置高度设置为 match_parent 为什么底部有黑条呢
配置:
什么都没做,默认的
布局
Log:
Screenshot
The text was updated successfully, but these errors were encountered: