1. The excludeFromRecents control is not displayed in the recent list
Do not display when true; display when false, default
<activity
android:name=".MainActivity"
android:alwaysRetainTaskState="true"
android:excludeFromRecents="true"
android:exported="true"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density"
android:launchMode="singleInstance"
android:resizeableActivity="${resizeable}"
android:screenOrientation="landscape"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
2. Multi-window attribute resizeableActivity
The global activity tag can be set under the application tag, and a single activity can be set under the application tag
android:resizeableActivity="${resizeable}"
The setting of this attribute will lead to three situations:
① If this attribute is not declared, then the multi-window mode is allowed by default, but there will be a prompt in the above picture (when running for the first time)
② If this attribute is declared and the value is set If it is true, then it is allowed to enter the multi-window mode, and there will be no prompt
③ If this attribute is declared and the value is set to false, then it is not allowed to enter the multi-window mode, only full-screen display is allowed
Window change attribute configChanges
android:configChanges="keyboardHidden|orientation|screenSize|mcc|mnc|keyboard|navigation"
Scaling the size of the application window under multiple windows will trigger a Configuration change. Possible changes include screenSize, smallestScreenSize, layoutDirection, screenLayout, orientation. It is recommended that the Activity’s manifest configure configChanges, otherwise the Activity will be destroyed and rebuilt, which may cause freezes and poor user experience. .