Android的碎片标签示例 [英] Android Fragment Tabs Example
问题描述
我目前工作的2.3版本的Android,我想我的应用程序切换到4.0版本,但pcated的 TabActivity
是德$ P $。所以我一直在寻找工作的例子 FragmentTabs
,但我无法找到一个。任何人都可以帮忙吗?
I am currently working on 2.3 version of android and I want to switch my app to 4.0 version but the TabActivity
is deprecated. So I was looking for working example of FragmentTabs
but I am not able to find one. Can anyone help?
推荐答案
我发现从API演示项目 FragmentTabs
的例子是非常有用的。
I've found the FragmentTabs
example from the API Demos project to be very useful.
刚刚创建Eclipse的一个新的Android示例项目,并选择API演示(试行API 13)。同样的支持(兼容)库,有一个FragmentTabs演示在Support4Demos
Just create a new Android sample project from Eclipse and choose the API demos (try API 13). Also for the support (compatibility) library, there's a FragmentTabs demo in the Support4Demos
同时参考这个链接 Android的FragmentTabHost-演示
这篇关于Android的碎片标签示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!