if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {    Window window = getWindow();    SystemBarTintManager tintManager = new SystemBarTintManager(this);    tintManager.setStatusBarTintEnabled(true);    //此處可以重新指定狀態欄顏色    tintManager.setStatusBarTintResource(R.color.title_back_n);}需要注意的是,只有在大于4.4.版本的才適用
新聞熱點
疑難解答