获取DrawerLayout滑过动作条 [英] Getting DrawerLayout to Slide over the ActionBar

查看:157
本文介绍了获取DrawerLayout滑过动作条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个活动,它与它的一些标签的动作条滑动抽屉菜单。

我想获得的滑动抽屉滑过标签,不低于他们。

这是什么样子现在...

如何能够做到这一点任何想法?

注:据我所知,我可能会在这里打破了一些约定和UI模式,如果它不能在所有的工作,我会看的替代品。但我想先得到这个工作。

编辑:查看下面的屏幕截图谷歌的Play音乐应用程序,不正是我需要的。请参见下面的@他不同意,我可能会打破惯例CommonsWare的答案。但后来考虑到播放音乐应用程序,它可能不是完全罕见无论是。

解决方案
  

如何能够做到这一点任何想法?

请执行下列操作:

  • 从动作栏选项卡切换而去,也许是为了 ViewPager 和标签的指标( PagerTabStrip TabPageIndicator 从ViewPageIndicator)

  • 看看现有的第三方抽屉实施尚未更新到新的用户界面标准

  • DrawerLayout 并对其进行修改,以适应

  • 滚动从头开始自己的抽屉式导航

  

据我所知,我可能会在这里打破了一些约定和UI模式

正确

I have a sliding drawer menu in an activity, which has an actionbar with some tabs on it.

I'd like to get the sliding drawer to slide over the tabs , not below them.

This is what it looks like right now...

Any ideas on how this could be done?

Note: I understand that I might be breaking some conventions and UI patterns here, and if it does not work at all, I'll look at alternatives. But I'd like to get this working first.

EDIT: See the below screen shot of the Google Play Music app that does exactly what I need. See @CommonsWare's answer below where he does agree that I might be breaking convention. But then given the Play Music app, it may not be altogether that rare either.

解决方案

Any ideas on how this could be done?

Do any of the following:

  • Switch away from action bar tabs, perhaps to ViewPager and a tabbed indicator (PagerTabStrip, TabPageIndicator from ViewPageIndicator)

  • See if an existing third-party drawer implementation has not yet updated to the new UI standards

  • Fork DrawerLayout and modify it to suit

  • Roll your own navigation drawer from scratch

I understand that I might be breaking some conventions and UI patterns here

Correct.

这篇关于获取DrawerLayout滑过动作条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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