按住Shift键在屏幕右上点击菜单;像Facebook [英] Shift the screen to right on click of menu; like facebook

查看:256
本文介绍了按住Shift键在屏幕右上点击菜单;像Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我想有一个像Facebook应用程序的行为,其中上点击图标,我想在转向右边整个屏幕,显示某些菜单的左边,如下所示:

In my application, I want to have behavior like facebook app wherein on click of icon I'd like to shift the whole screen towards right and display some menus on the left as shown below:

在点击菜单按钮

在点击菜单按钮

一种方法是与在黑色的菜单布局,并设置其能见度消失

One way is to have a layout with those menu in black color and set its visibility to gone

但在这种情况下,移动动画会不会有像它的存在了Facebook。那么,有没有办法,我们可以做到这一点?

But in that case, the shifting animation won't be there like it is there in facebook. So is there any way we can do this?

推荐答案

这UI模式正在被称为侧面导航,并讨论了一些细节在这里:

This UI Pattern is currently being referred to as Side Navigation and discussed in some detail here:

http://www.androiduipatterns.com/2012/06/emerging-ui-pattern-side-navigation.html

文章还链接到已实施了该导航几个项目:

The article also links to several projects that have implemented this navigation:

https://github.com/korovyansk/android-fb-like-滑出式导航

https://github.com/darvds/RibbonMenu

https://bitbucket.org/jfeinstein10/slidingmenu/overview

https://github.com/Gregadeaux/android-fly-in-应用程序导航

这是值得一读的文章,其对用这种导航也是问题的讨论,虽然。

It is worth reading the article for its discussion about the issues with this kind of navigation also, though.

这篇关于按住Shift键在屏幕右上点击菜单;像Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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