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

设置navigationbar无效 #49

Open
Eiter opened this issue Sep 18, 2021 · 1 comment
Open

设置navigationbar无效 #49

Eiter opened this issue Sep 18, 2021 · 1 comment

Comments

@Eiter
Copy link

Eiter commented Sep 18, 2021

红米K30,有DrawerLayout

override fun onDrawerSlide(drawerView: View, slideOffset: Float) { val bar_color = if (slideOffset == 0F) R.color.colorPrimary else R.color.color_system_drawer navigationBar { colorRes = bar_color } statusBar { colorRes = bar_color } }
监听DrawerLayout打开关闭更新bar颜色。

进入界面是竖屏,打开DrawerLayout,关闭DrawerLayout,切换横屏,打开DrawerLayout,发现设置的navigationbar颜色无效,statusbar有效

@Zackratos
Copy link
Owner

代码排版弄弄好啊

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

2 participants