1 android:backgroundDimEnabled true:有透明遮罩 false:无透明遮罩
2 windowBackground和windowIsTranslucent
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
"android:windowIsTranslucent":true 单独设置(无windowBackground:@color/transparent),会增加Activity的进入和出去的动画,从右向左滑进
windowBackground:@color/transparent单独设置没有上面的windowIsTranslucent":true设置,则窗体显示为黑色
"android:windowIsTranslucent":true并且"android:windowIsTranslucent":true 则窗体如果没有设置背景颜色则窗体透明
3 windowBackground
Activity的theme中如果设置了背景则显示,如果Activity的布局中也设置了这个属性,则布局中的会显示在最上面,theme不会显示
4 android:screenOrientation="portrait" 设置屏幕是横着还是竖着
5 android:configChanges="keyboardHidden|orientation"
screenOrientation 没有设置的话,屏幕每次旋转都走Activity的create方法,设置的话只走Activity的onConfigChange方法