Android Question Change Content Rect

Robert Valentino

Well-Known Member
Licensed User
Longtime User
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
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
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
    Screenshot_20260813_115102[1].jpg
    76.4 KB · Views: 3
  • Screenshot_20260813_115117[1].jpg
    Screenshot_20260813_115117[1].jpg
    72.8 KB · Views: 3
Last edited:
Upvote 0
Top