取消 actionbar 陰影,appcompat ,
theme 添加
<item name="android:windowContentOverlay">@null</item>
getSupportActionBar().setElevation(0);
透明狀態欄
if(Build.VERSION.SDK_INT > 16) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|View.SYSTEM_UI_LAYOUT_FLAGS|View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
getWindow().getDecorView().setFitsSystemWindows(true);
}