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

安卓下,tabbar页面的状态栏字体颜色不能改变 #408

Open
fukai7722 opened this issue May 11, 2019 · 1 comment
Open

安卓下,tabbar页面的状态栏字体颜色不能改变 #408

fukai7722 opened this issue May 11, 2019 · 1 comment

Comments

@fukai7722
Copy link

fukai7722 commented May 11, 2019

Your questions.

  • 安卓下,当页面是tabbar的页面时,状态栏字体颜色只能是白色,router进入子页面时,状态栏字体颜色正常

配置如下:

'page': {
'homePage': '/pages/index.js',
'mediatorPage': '/mediator/index.js',
'navBarColor': '#ffffff',
'navItemColor': '#000000',
}

Environment.

  • Mobile model: 华为Mate8
  • Mobile system: Android 8.0.0

Screenshot_20190511-181752
Screenshot_20190511-181809

@fukai7722
Copy link
Author

仔细找到问题所在了,
在 wxframework里面DefaultNavigationAdapter的setTabbarNavigation方法
缺少对状态栏字体颜色的修改
最后一行加上
StatusBarManager.setStatusBarFontStyle(activity, routerModel);
即可

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