Closed xuetenglong closed 7 years ago
Mobile phone : Redmi Note2
private void setStatusBarColor(@ColorInt int color) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { if (getWindow() != null) { getWindow().setStatusBarColor(color); } } }
See the source code should add getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
@longerxue Hello and thanks for the reported issue. I'll take a look at this problem and add a fix in the next update.
I've added FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS to the current build, it will be available with the next library update very soon.
Please check the latest uCrop version :octocat: Now you can choose between:
compile 'com.yalantis:ucrop:2.2.0'
compile 'com.yalantis:ucrop:2.2.0-native'
resolved
android version 5.0.1 UCrop uCrop = UCrop.of(uri1, uri2); uCrop.getIntent(this).putExtra(UCrop.Options.EXTRA_TOOL_BAR_COLOR, ContextCompat.getColor(this, cn.com.jinyinmao.common.R.color.mis_actionbar_color)); uCrop.getIntent(this).putExtra(UCrop.Options.EXTRA_STATUS_BAR_COLOR, ContextCompat.getColor(this, cn.com.jinyinmao.common.R.color.mis_actionbar_color));
statusbar color not change