For Android 7.1 and lower, add a element named android.max_aspect in the element.

Code Block 3 meta-data android.max_aspect

<!-- Render on full screen up to screen aspect ratio of 2.4 -->
<!-- Use a letterbox on screens larger than 2.4 -->
<meta-data android:name="android.max_aspect" android:value="2.4" />

Note :

If an app does not support a long aspect ratio (9:21), it may not be resized properly when unfolded in emulator environment. Please make sure the app support a long aspect ratio first before testing folding and unfolding.

Optimized layouts for cover display and main display

Now the app will run in both displays even with different sizes.

We recommend adding a separate resource folder to show more rich and clear content.

How to optimize layouts

Refer to the following link to get the default information about separate resource folder.