显示在标签片段的最好方法? [英] Best way to show fragments in tabs?

查看:114
本文介绍了显示在标签片段的最好方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个应用程序,其中每个选项卡必须显示不同的ListFragment看法。我已经完成工作的ListFragment和它的作品没有任何问题。现在,我想他们使用标签来显示,这样任何ListFragment可以通过选择各自的选项卡进行访问。 什么是做到这一点的最好方法是什么?

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?

推荐答案

一个很好的方法是使用ActionBarSherlock + ViewPager:

A good way is to use ActionBarSherlock + ViewPager :

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

这篇关于显示在标签片段的最好方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆