Skip to content
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

AppbarLayoutActivity 在 Android 7.1 标题显示错位 #4

Open
ZDZN opened this issue Aug 2, 2018 · 0 comments
Open

AppbarLayoutActivity 在 Android 7.1 标题显示错位 #4

ZDZN opened this issue Aug 2, 2018 · 0 comments

Comments

@ZDZN
Copy link

ZDZN commented Aug 2, 2018

AppbarLayoutActivity 这个例子
用模拟器测试 Android 7.1 、Android 8.0 都有以下情况,标题显示错位的问题。
Android 5.1 、Android 4.4 测试就没这个问题。
5.1 到 7.1 之间版本还没测试,不知道从哪个版本开始有这个问题。

应该用 StatusBarUtil 中的
StatusBarUtil.setTranslucentForImageView(this, 0, toolbar);
可以解决这个问题

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant