简体   繁体   中英

Drawing UI components when device orientation changes

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.

您只需将调整框架设置为横向模式即可。U并未分配内存,仅调整框架...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM