如何在弹出窗口期间保持方向?
我在活动中使用菜单来显示弹出窗口。 问题是,当方向改变时,弹出窗口消失并再次显示活动屏幕。
(发生这种情况是因为当方向更改时,活动会再次启动)
我希望活动不会再次启动,并且在方向更改后,弹出窗口不会消失。
I am using menu in an activity to display a popup window.
The problem is that when the orientation is changed, the popup window disappears and the activity screen is shown again.
(It happens because when the orientation is changed the Activity is started again)
i want that the activity doesnt start again and after orientation change the popup window doesnt vannish.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请在清单文件中查看活动
将活动放入代码下方
please chenge activity in manifest file
put in activity below code
请对您定义活动的清单进行以下更改,
添加以下行:
Please make the following changes to manifest where you defined your activity
add this lines: