1

I have an android app that displays a menu item that when selected shows a sub-menu. When the device orientation is changed the sub-menu disappears?

I have read the related posts, but none of them actually deal with a sub-menu item. Do I use on "saved/on restore", somehow check to see if the sub-menu item is displayed and then somehow restore it? Use "on configuration change" and do the same thing?

Everything else displays fine with orientation changes except for the sub-menu items. If anyone has any ideas I would be glad to hear them. Thanks.

4

1 回答 1

-1

在设计屏幕时,应根据横向和纵向模式设计场景。在设计部分,尝试两种模式,并为横向和纵向调整适当的设计。因此,如果您改变方向,您的设计将是正确的。

于 2011-11-15T12:39:51.523 回答