ActivityGroup VS View Flipper
我有一组选项卡。在其中一个选项卡中,我想显示两种不同类型的功能。
所以我的问题是最好实现一个包含子活动的活动组,或者只是创建一个视图翻转器并在视图之间切换。
I have a group of tabs. In one of the tabs, I want to display two different types of functionality.
So my question is it better to implement a activity group with child activities or just create a view flipper and switch between views.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ActivityGroup 用于管理一个或多个活动示例。如果两个不同的活动有不同的实现,但用户希望在共享屏幕的基础上看到意味着在前半部分用户希望看到一些东西,而在第二部分有一些其他东西。在这种情况下,ActivityGroup 就可以发挥作用,
如果您想定期更改视图,可以使用ViewFlipper。就像某种自动翻书一样。尽管自定义适配器画廊在这方面要好得多。
两者都有不同的目的。这取决于您的要求,您将选择其中任何一个。
ActivityGroup is used to manage one or more activity example. if two different activity have different implementation but the user want to see on sharing screen basis means in first half user want to see some thing and in second have some other thing. In that case ActivityGroup comes to play
ViewFlipper can be used if you want to periodically change the views. Say like an automated flipping book of some sort. Though a custom-adapter gallery is much better at this.
Both have different purpose. It depends on your requirement you will choose any of them.
我会带一个观景脚蹼。您可能不需要创建另一个活动的全部开销。但这样会使你的单一活动能够容纳它们更大一些。因此,也可以尝试在您将添加的视图中实现一些功能。
希望这有帮助。
i would go with a view flipper. you probably dont need the whole overhead of creating another activity. but that way will make your single activity that will hold them a bit larger. so also maybe try to implement some of the functionality inside the views you will be adding.
hope this helps.