简体   繁体   English

使用手势检测显示/隐藏自定义底部菜单?

[英]Using Gesture detection to show/hide custom bottom menu?

In my application I need to show and hide a view(custom menu) only in screen's bottom if a user swipe from bottom to up and similarly it should hide the view if user swipes the view down.The swiping thing is similar to navigation drawer introduced in android recently but I am not getting how do I detect the bottom-up swipe in my application to show the view.I could have used SlidingDrawer but that has been deprecated since API 17.Please help me . 在我的应用程序中,如果用户从下向上滑动,则只需要在屏幕的底部显示和隐藏视图(自定义菜单),并且如果用户向下滑动视图,则应该隐藏该视图。滑动的内容类似于引入的导航抽屉最近在android中,但是我没有得到如何检测应用程序中自下而上滑动以显示视图的信息。我本可以使用SlidingDrawer,但是自API 17以来已弃用。请帮助我。

在此处输入图片说明 ---> ---> 在此处输入图片说明

Look here . 这里 I don't think use SlidingDrawer 我不认为使用SlidingDrawer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM