-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
状态栏为白色的时候能兼容所有手机吗? #4
Comments
如何判断支持不支持,然后去设置呢? |
if (OSUtils.isMIUI() || OSUtils.isFlymeOS() || Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
//处理状态栏字体为黑色
} else {
//处理状态栏有透明度
} OSUtils这个类也是ImmersionBar库里的 |
好吧 这个可不可以暴露个接口啊 不然用起来不太方便,有的页面可能还需要动态的修改颜色 ,还要加各种判断 |
@AndSync if(ImmersionBar.isSupportStatusBarDarkFont()){
//处理状态栏字体为黑色
}else {
//处理状态栏有透明度
} |
4.3以下的 还需要用户自己判断版本号吗? |
@AndSync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前我们app设计的基本上标题栏都是白色,状态栏做成白色的话 是只有 小米 魅族等个别厂商手机还有android6.0以上的可以将字体改成黑色,其他的怎么办?
The text was updated successfully, but these errors were encountered: