不同标签内的不同活动 [英] different activities inside different tabs
本文介绍了不同标签内的不同活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个标签小部件,其中有3个标签.现在,在其中一个标签中,我需要一张Google地图,因此我需要一个地图活动,而其他活动却是正常活动.每次选择特定标签时如何调用活动?
在此先感谢
I have a tab widget, having 3 tabs. Now in one of the tabs i need a google map and so i need a map activity but the others normal activities. how do i call the activity every time i choose that particular tab?
thanks in advance
推荐答案
我认为最好是在一个选项卡中包含多个视图的单个活动.我发现此帖子似乎可以解决您想要的问题:
http://joshclemm.com/blog/?p=86 [
I believe it''s better practice to have a single activity with multiple views for your tabs. I found this post which seems to address what you want:
http://joshclemm.com/blog/?p=86[^]
Hope this helps you out.
这篇关于不同标签内的不同活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文