Android N + split screen support only on tablets

Is there a way to configure multi-window support for activity only on large enough screens, for example. the tablet?

https://developer.android.com/preview/features/multi-window.html#configuring does not mention this. Setting android:minimalHeight and android:minimalWidth does not seem to help, because

If the user moves the divider in split-screen mode to make the action less than the specified minimum, the system processes the action to the size that the user requests.

Use case: for certain actions it may not make sense to work in very small (divided) screen sizes. In such situations, activity should not support multi-window mode.

+5
source share
1 answer

You can create multiple APKs (one for the phone, one for the tablet) using the tag

 <supports-screens> 

in your manifest, and then enable split screen support only on the APK tablet.

+1
source

All Articles