Robert Valentino Well-Known Member Licensed User Longtime User Aug 12, 2026 #1 On my Samsung ZFold 7 when you go from closed to open or open to close the Activity seems to change but the ContentRect doesnt Does anyone know how to handle the changing of screen sizes on ZFold devices
On my Samsung ZFold 7 when you go from closed to open or open to close the Activity seems to change but the ContentRect doesnt Does anyone know how to handle the changing of screen sizes on ZFold devices
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2026 #2 I think that you can disable this for now by adding this to the manifest editor: Code: SetApplicationAttribute(android:resizeableActivity, "false") AddApplicationText( <property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" /> ) Upvote 0
I think that you can disable this for now by adding this to the manifest editor: Code: SetApplicationAttribute(android:resizeableActivity, "false") AddApplicationText( <property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" /> )
Robert Valentino Well-Known Member Licensed User Longtime User Aug 13, 2026 #3 I had resizeableActivity set to true (was handling the changes in the program until moving to using the ContentRect) When make the changes you suggested (tried with both and then just the resizeableActivity) screen really changes. Will play with it. Doesn't seem like ContentRect is changing when opening - will see if I can work around it UPDATE: Figured it out. MY BAD - turns out below SDK 36 to handle this I was handling configchange and setting the Main Activity Width and Height and that has worked since getting my ZFold. Now using SDK 36 - I removed setting the Activity Width / Height. This works OK. App is centered when Open but at least draws properly. Would like it to resize to the left side and only 1/2 the screen. Will work on that Thanks Erel for the push in the right direction Attachments Screenshot_20260813_115102[1].jpg 76.4 KB · Views: 92 Screenshot_20260813_115117[1].jpg 72.8 KB · Views: 86 Last edited: Aug 13, 2026 Upvote 0
I had resizeableActivity set to true (was handling the changes in the program until moving to using the ContentRect) When make the changes you suggested (tried with both and then just the resizeableActivity) screen really changes. Will play with it. Doesn't seem like ContentRect is changing when opening - will see if I can work around it UPDATE: Figured it out. MY BAD - turns out below SDK 36 to handle this I was handling configchange and setting the Main Activity Width and Height and that has worked since getting my ZFold. Now using SDK 36 - I removed setting the Activity Width / Height. This works OK. App is centered when Open but at least draws properly. Would like it to resize to the left side and only 1/2 the screen. Will work on that Thanks Erel for the push in the right direction
Robert Valentino Well-Known Member Licensed User Longtime User Aug 13, 2026 #4 WOW, was just reading that this is only temporary fix that Android 17 will ignore these commands. That's GR8 NOT Upvote 0
WOW, was just reading that this is only temporary fix that Android 17 will ignore these commands. That's GR8 NOT