机器人NavigationDrawer和ViewPager作为其一个片段的 [英] Android NavigationDrawer and ViewPager as its one of fragment

查看:231
本文介绍了机器人NavigationDrawer和ViewPager作为其一个片段的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个SherlockFragmentActivity有三个片段为ViewPager。但现在我想用这个活动中NavigationDrawer,但我很困惑如何做到这一点。 Google+应用有这种实现,但我想知道如何做到这一点。

I have created a SherlockFragmentActivity that has three fragments for ViewPager. But now I want to use this Activity in NavigationDrawer but I am confused how to do this. Google+ app has this kind of implementation but I am wondering about how to achieve this.

NavigationDrawer将下面的UI元素都:

NavigationDrawer will have following UI elements:

  1. FragmentActivity(包含三个片段作为ViewPager)
  2. 第二块碎片
  3. 第三块碎片

是这样的布局可能与抽屉式导航。如果是的,我应该怎么做。如果不是这样,我应该怎么做才能达到这种导航在我的应用程序。

Is this kind of layout possible with Navigation Drawer If yes, how should I do it. If not, what should I do to achieve this kind of navigation in my app.

推荐答案

您可以使用下面的库来获得类似于您的要求航海模型

You can use below libraries to get navigation model similar to your requirement

  • ActionBarSherlock(github上)
  • 在嵌套的片段(github上)
  • PagerSlidingTabStrip(github上)
  • NavigationDrawer(Android开发者网站)
  • 在最新的支持V4库

有一个在我的帖子

下面是我的示例应用程序导航抽屉标签条的例子在github上

Below is screenshot of my sample app Navigation Drawer with Tab Strip Example at github

这篇关于机器人NavigationDrawer和ViewPager作为其一个片段的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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