简体   繁体   English

列表视图元素的Android弹出标签活动

[英]Android Pop-up Tab Activity for the element of listview

I am developing one android application, having the listview activity. 我正在开发一个具有listview活动的android应用程序。 I displayed the activity. 我展示了活动。 I want to place one pop-up tab activity having two tabs for the list view element. 我想放置一个弹出标签活动,其中包含两个用于列表视图元素的标签。 when the user clicks on the corresponding element, the pop-up tab should display and tab activity should be performed. 当用户单击相应元素时,将显示弹出选项卡,并执行选项卡活动。 Please help me with the corresponding sample code. 请帮助我提供相应的示例代码。 Thanks in advance. 提前致谢。

If im getting right your question ,you want to open a TabActivity onItemClick ,which should look like a pop-up, I would like to suggest you to open a normal TabActivity when the user clicks on the corresponding element ..just put this in your manifest file : 如果我的问题是对的,您想打开一个TabActivity onItemClick,它看起来应该像一个弹出窗口,我建议您在用户单击相应元素时打开一个普通的TabActivity。清单文件:

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

Theme.Dialog will make it to look like a pop-up... Theme.Dialog将使其看起来像一个弹出窗口...

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

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