I want to enable Split Screen for my android app. If I try to drag my app to make it occupy the top half of my android device it gives the message "App doesn't support split screen". However, for other apps such as Facebook and WhatsApp, I am able to use split screen. I am using LGE Nexus 5X with Android 7 (nougat) which supports split screen.
Asked
Active
Viewed 9,256 times
15
-
2Set your `targetSdkVersion` to 24 or higher. – CommonsWare Sep 12 '16 at 13:56
1 Answers
22
Add this to your application or activity tag in AndroidManifest.xml:
android:resizeableActivity=true
Adding it to application will make all activities realizable, while adding it to a specific activity will keep other activities incompatible with resizing.
If your targetSdkVersion is 24 (Nougat) or higher, this will be set to true by default (you can still turn it off by setting the param to false).
Kelevandos
- 7,024
- 2
- 29
- 46
-
-
Nope :) It will simply have no effect in earlier system versions :-) – Kelevandos Sep 12 '16 at 14:00
-
its not working for me :( . Target SDK is 27 in my case and android:resizeableActivity=true inside application tag. – Sapna Sharma Jan 22 '19 at 05:11
