Android改变标题栏背景和文字颜色
16lz
2022-04-23
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){ // 背景颜色 getWindow().setStatusBarColor(getResources().getColor(R.color.colorPrimary)); // 黑色文字 getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); // 白色文字 // getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);}
更多相关文章
- android performClick
- android 自定义折线图
- android状态栏透明/白底黑字
- android color
- android 控件背景添加圆角
- android ImageUtils 图片处理工具类
- TextView实现中间文字两侧图片的样式 和 左侧图片右侧文字
- Android(安卓)SeekBar
- android ImageUtils 图片处理工具类