We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
红米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颜色。
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,关闭DrawerLayout,切换横屏,打开DrawerLayout,发现设置的navigationbar颜色无效,statusbar有效
The text was updated successfully, but these errors were encountered:
代码排版弄弄好啊
Sorry, something went wrong.
No branches or pull requests
红米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有效
The text was updated successfully, but these errors were encountered: