带有 ACtionBar 的 TabView
我在我的应用程序中使用 tabview,其中 Home 是默认选择的选项卡
我在此活动上添加了三个 Buttons
。我希望当我点击 MapView Activity
的 List 按钮
时,这个 MapPinsListView Activity
将在 MapView
和 MapPinsListView Activity 的同一帧上启动。其余视图将保持不变,即所有选项卡将按其预期工作。但是,我在使用它时遇到了一个问题,当我单击列表时,意图将启动新的活动&孔视图被其活动视图取代,而我只希望框架视图将被调用意图和视图的视图改变。当点击
MapPinsListView
的地图按钮时,MapView
将启动。我应该如何进行。
非常感谢您的帮助!
谢谢
I am using tabview in my application, in which Home is default tab selected
I add three Buttons
over this activity.I want that when i click on List button
of MapView Activity
, thisMapPinsListView Activity
will start on the same frame over MapView
& rest view will remains same i.e., all tabs will works as they intended to work. However, i am facing a problem while using it, When i click on list, intent will start new activity & hole view get replaced by its activiy view, whereas i want only the frame view will change by the view of called intent & when click on Map button of MapPinsListView
, MapView
will start. How should i proceed.
Would appreciate your help a lot!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过长时间的研发,我得到了最好的方法来做到这一点是
1.code TabGroupActivity 它扩展了 ActivityGroup。此 Activity 的目的是管理选项卡中的活动。请注意,子活动可以在此处看到按键之前对其进行处理。
2.编写不同的类(例如,TabGroupHome、TabGroupFavourite、TabGroupMassage 等等...)扩展 TabGroupActivity。
3.最后编写TabActivity代码,它扩展了TabActivity &然后将这些 TabGroupActivities(TabGroupHome、Favourite、Massage、Profile、Settings)添加到相应的 tabSpace 中。
最后,完成这些后,所有不同的活动都可以通过同一个框架进行管理!
http://ericharlow.blogspot.com/2010/09/experience -multiple-android-activities.html
after having a long R&D i got the best way to do this is
1.code TabGroupActivity which extends ActivityGroup.The purpose of this Activity is to manage the activities in a tab. Note that Child Activities can handle Key Presses before they are seen here.
2.code different classes (e.g., TabGroupHome, TabGroupFavourite, TabGroupMassage & so on...) & extends TabGroupActivity.
3.finally code TabActivity which extends TabActivity & then add these TabGroupActivities(TabGroupHome, Favourite, Massage, Profile, Settings) ovew there respactive tabSpace.
finally, after completing these all different activities get managed over the same fram!
http://ericharlow.blogspot.com/2010/09/experience-multiple-android-activities.html