[英]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. 当我在纵向模式下在应用程序中打开任何表单并点击任何文本字段(弹出键盘),然后将设备方向更改为横向时,页面将不再滚动至最底部的UI小部件。 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 我认为想法应该是:1.捕获设备方向的变化2.根据需要更改UI组件的框架3.重新绘制屏幕
Please suggest. 请提出建议。
您只需将调整框架设置为横向模式即可。U并未分配内存,仅调整框架...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.