把通知栏变成和actionbar一样的颜色(不是全屏)
[img]http://dl2.iteye.com/upload/attachment/0109/6891/6591162e-83e2-325d-a97d-6f7e5441c2ef.jpg[/img]
xml 最外层里添加
没有此手机,没有试过,有此手机者可以试试
[img]http://dl2.iteye.com/upload/attachment/0109/6891/6591162e-83e2-325d-a97d-6f7e5441c2ef.jpg[/img]
if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
}
xml 最外层里添加
android:clipToPadding="true"
android:fitsSystemWindows="true"
没有此手机,没有试过,有此手机者可以试试