zoukankan      html  css  js  c++  java
  • android 改变状态栏(StatusBar)颜色

    public static void changeColor(Activity paramActivity, int paramInt1) {
    if (Build.VERSION.SDK_INT >= 21) {
    paramActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
    paramActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    paramActivity.getWindow().setStatusBarColor(paramInt1);
    }
    }
  • 相关阅读:
    Java
    Java
    Java
    Java
    Java
    Java
    Java
    Java
    JSON
    正则表达式
  • 原文地址:https://www.cnblogs.com/qianyukun/p/8676028.html
Copyright © 2011-2022 走看看