Skip to content

白条 #6

Open
Open

Description

@zhangyc

同一个activity,根据参数进行修改状态栏时,但北京修改为蓝色时,状态栏下方会有一个白条。
if ("blue".equals(statusBarColor)){
StateAppBar.setStatusBarColor(DentistryMallWebActivity.this,
ContextCompat.getColor(DentistryMallWebActivity.this,
R.color.color_517DF7));
}else if ("white".equals(statusBarColor)){
StateAppBar.setStatusBarColor(DentistryMallWebActivity.this,
ContextCompat.getColor(DentistryMallWebActivity.this,
R.color.white));
StatusBarUtils.StatusBarLightMode(DentistryMallWebActivity.this);
}
这是实现方式

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions