开发者

Drawing UI components when device orientation changes

开发者 https://www.devze.com 2023-01-19 17:03 出处:网络
When I open any form in my app in Portrait mode and tap on any textfield (keyboard pops up) and then change the device orientation to landscape, page is no longer scrollable to bottom most UI widgets.

When I open any form in my app in Portrait mode and tap on any textfield (keyboard pops up) and then change the device orientation to landscape, page is no longer scrollable to bottom most UI widgets. But if you open the same page directly 开发者_运维问答in Landscape mode, it works fine

I think idea should be like: 1. Capture the change in device orientation 2. Change the frames of UI components as required 3. Redraw the screen

Please suggest.


You simply set adjust your frame for landscape mode.. U did not allocate memory just adjust frame only...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号