打开抽屉时在右侧推动活动 [英] push activity on the right when open drawer

查看:26
本文介绍了打开抽屉时在右侧推动活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了从右侧滑动的抽屉布局,但它不会像 facebook 那样向右移动活动(见下图).当用户点击上图所示的 opendrawer 按钮时,如何将当前活动推到右侧.目前它出现在活动顶部并放置阴影.我非常感谢任何帮助.提前致谢.

I have implemented drawerlayout which slides from the right but it does not shift the activity the right like facebook does (See below image). How do I push the current activity to the right side when user taps on opendrawer button like in the above image.Currently it appears on top of activity and drops shadow.I really appreciate any help . Thanks in advance.

推荐答案

我不认为你可以用 DrawerLayout 来实现它,但是用 SlidingMenu 你可以, 这里的 GitHub 存储库应该可以解释您所需要的一切

I don't think you can implement it with the stock DrawerLayout, however with SlidingMenu you can, the GitHub repo here should explain all you need

这篇关于打开抽屉时在右侧推动活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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