How to enable "resizeableActivity" for only a singe Activity

Viewed 17

I am using samsung's foldable device - Galaxy Z Fold3 5G

I need to set resizeableActivity = true of only a single activity.

I cannot set it in main <application> tag as it will be applied to the whole app.

<application
     android:networkSecurityConfig="@xml/network_configuration"
     android:resizeableActivity="false"
     tools:targetApi="n">
.....
.....

</application>

I've also tried writing it in the <activity>, but it is not working there.

<activity
      android:name=".PlayVideo_Act"
      android:hardwareAccelerated="true"
      android:allowTaskReparenting="true"
      android:launchMode="singleTask"
      android:resizeableActivity="true"
      android:screenOrientation="locked"/>

Any help?

0 Answers
Related