getWindow().setStatusBarColor(0xff56ced4 );//改变状态栏的颜色
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//改变字体颜色
Change the color of the top status bar
Guess you like
Origin www.cnblogs.com/charlottepl/p/12538630.html
Recommended
Ranking