简体   繁体   English

如何在其他活动上将活动显示为弹出窗口?

[英]How to show an Activity as pop-up window on other Activity?

I have a ListActivity act as dialog. 我有一个ListActivity充当对话框。 It's fine. 没关系。 when i select item click show another listactivity as dialog. 当我选择项目时,单击“显示另一个listactivity作为对话框”。 But i want to show second listactivity as pop up window based activity. 但是我想显示第二个listactivity作为基于弹出窗口的活动。 Already i have set manifest file android:theme="@android:style/Theme.Dialog". 我已经设置了清单文件android:theme =“ @ android:style / Theme.Dialog”。 Two list activity show but pop up windows not indicate specific item. 显示两个列表活动,但弹出的窗口未指示特定项目。 is it possible we can do? 我们可以做到吗? Already have this question in stackoverflow. 在stackoverflow中已经有这个问题了。 I know some code are missed. 我知道会丢失一些代码。 what are the steps. 有哪些步骤。 pls help me. 请帮助我。 Advanced thanks, 谢谢,

Android activity can create as dialog and. Android活动可以创建为对话框和。 activity can run single screen only. 活动只能在单个屏幕上运行。 multiple activity run on fragment only. 多个活动仅在片段上运行。 you can't make popup window as a activity. 您不能将弹出窗口作为活动。

在清单中为要作为对话框打开的活动设置以下属性:

<activity android:theme="@android:style/Theme.Dialog" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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