打开抽屉时右侧推动活动 [英] push activity on the right when open drawer
问题描述
我已经执行了从右侧滑动的drawerlayout,但它不会像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 repo应该解释所有你需要的
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屋!