Search in sources :

Example 6 with SystemBarTintManager

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));
    }
}
Also used : SystemBarTintManager(com.yzy.supercleanmaster.utils.SystemBarTintManager)

Aggregations

SystemBarTintManager (com.yzy.supercleanmaster.utils.SystemBarTintManager)6 Intent (android.content.Intent)1 LayoutParams (android.view.WindowManager.LayoutParams)1 RelativeLayout (android.widget.RelativeLayout)1 CoreService (com.yzy.supercleanmaster.service.CoreService)1 Field (java.lang.reflect.Field)1