Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个具有 listview 活动的 android 应用程序。我展示了活动。我想为列表视图元素放置一个具有两个选项卡的弹出选项卡活动。当用户单击相应的元素时,应显示弹出选项卡并执行选项卡活动。请帮助我提供相应的示例代码。提前致谢。
如果我的问题是正确的,你想打开一个 TabActivity onItemClick ,它应该看起来像一个弹出窗口,我建议你在用户点击相应的元素时打开一个普通的 TabActivity ..把它放在你的清单文件:
<activity android:name=".YourTabActivityExample" ***android:theme="@android:style/Theme.Dialog***">
Theme.Dialog将使它看起来像一个弹出...