Best way to show fragments in tabs?

余生颓废 提交于 2019-12-11 22:56:00

问题


I'm writing an app in which each tab must display a different ListFragment view. I've finished working on the ListFragment and it works without any issues. Now, I would like to display them using tabs so that any ListFragment can be accessed by selecting it's respective tab. What's the best way to do this?


回答1:


A good way is to use ActionBarSherlock + ViewPager :

http://www.androidbegin.com/tutorial/android-actionbarsherlock-viewpager-tabs-tutorial/



来源:https://stackoverflow.com/questions/17853077/best-way-to-show-fragments-in-tabs

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