use of com.yzy.supercleanmaster.utils.SystemBarTintManager in project superCleanMaster by joyoyao.
the class MainActivity method applyKitKatTranslucency.
/**
* Apply KitKat specific translucency.
*/
private void applyKitKatTranslucency() {
// KitKat translucent navigation/status bar.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
setTranslucentStatus(true);
SystemBarTintManager mTintManager = new SystemBarTintManager(this);
mTintManager.setStatusBarTintEnabled(true);
mTintManager.setNavigationBarTintEnabled(true);
// mTintManager.setTintColor(0xF00099CC);
mTintManager.setTintDrawable(UIElementsHelper.getGeneralActionBarBackground(this));
getActionBar().setBackgroundDrawable(UIElementsHelper.getGeneralActionBarBackground(this));
}
}
Aggregations