SlidingMenu与谷歌地图碎片锁定手势检测 [英] SlidingMenu with Google Map fragment lock the gestures detection

查看:315
本文介绍了SlidingMenu与谷歌地图碎片锁定手势检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让合作SlidingMenu库( https://github.com/jfeinstein10/SlidingMenu),在显示与谷歌地图自定义MapFragment,但会要求水平姿态检测禁用FragmentActivity。

I'm trying to make cooperate SlidingMenu library (https://github.com/jfeinstein10/SlidingMenu) in a FragmentActivity that displays a custom MapFragment with a Google Map, but that causes the disabling of the horizontal gesture detection.

我可以在手势所有方向,不是在水平轴开始移动地图,但滑动不会对地图的任何影响进行排序。出现这种情况,即使我禁用SlidingMenu或者如果我设置TOUCHMODE_NONE。这就像SlidingMenu的FrameLayout覆盖地图的检测。

I can move Map in all directions with gestures that not starting in the horizontal axis, but swipe doesn't sort any effects on Map. This happens even if I disable the SlidingMenu or if I set TOUCHMODE_NONE. It's like SlidingMenu FrameLayout overrides the detection of the Map.

我跟着这个计算器帖子:<一href=\"http://stackoverflow.com/questions/13895149/sliding-menu-locks-touch-event-on-upper-view\">Sliding菜单锁在上视图触摸事件,使用SlidingFragmentActivity与SherlockActionBar调整,但它仍然无法正常工作。

I followed this StackOverflow post: Sliding menu locks touch event on upper view, using SlidingFragmentActivity tuned with SherlockActionBar, but it still doesn't work.

任何提示?

推荐答案

在此页面上教它用,不显示菜单,当你在地图上滑动,这一行说。

on this page teach it to use, not to show the menu when you slide on the map, says this line

//menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);

http://androidsolution4u.blogspot.com/2013/ 05 / Android的滑动菜单like.html

这篇关于SlidingMenu与谷歌地图碎片锁定手势检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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