Android ---------- 清单文件中Activity常规设置

时间:2020-12-29 00:04:50

<activity
android:name="xxxxx"
android:alwaysRetainTaskState="true"
android:configChanges="locale|keyboardHidden|orientation"
android:launchMode="singleTop"
android:screenOrientation="portrait"

android:theme="@android:style/Theme.NoTitleBar"

android:windowSoftInputMode="stateHidden|adjustPan" />

*alwaysRetainTaskState:标记Activity所在的Task的状态是否总是由系统来保持

*configChanges:横竖屏切换,生命周期的调用与否

*launchMode:activity的启动模式

*screenOrientation:设置应用的横竖屏

*windowSoftInputMode:软键盘的设置