Android Fragment Tabs Example

心不动则不痛 提交于 2019-12-04 18:20:38

问题


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?


回答1:


I've found the FragmentTabs example from the API Demos project to be very useful.

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

also refer this link Android-FragmentTabHost-demo




回答2:


A great library is ActionBarSherlock. You can find it here. There are many examples and demos even for fragments.




回答3:


It's worth mentioning that Google introduced ActionBarCompat in the v7 appcompat library (together with Android 4.3) yesterday. Here's a video overview, and here's documentation.



来源:https://stackoverflow.com/questions/10383142/android-fragment-tabs-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!