滑动菜单的姿态覆盖图手势机器人的滚动手势 [英] Sliding menu gesture overwrites the scrollable gesture of a graph gesture-android

查看:191
本文介绍了滑动菜单的姿态覆盖图手势机器人的滚动手势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的这里滑动菜单在我的应用程序。我的应用程序也有一个 GraphView 中,我在实时设置一些数据。该图是它是可滚动的,向左和向右的线性曲线图。但是,由左到右手势具有滑动菜单,用户不能在图形滚动因为菜单保持跑出。

I am using a sliding menu from here in my application. My app also has a GraphView in which I set some data in real time. The graph is a linear graph which is scrollable, to the left and to the right. But, having the sliding menu by a left to right gesture, the user cannot scroll in the graph because the menu keeps popping out.

有没有什么办法可以覆盖菜单功能,当某一个项目是pressed?图为项目仅仅是一个LinearLayout中。

Is there any way I can overwrite the menu functionality when a certain item is pressed? The graph item is just a LinearLayout.

我还使用片段,每个菜单项是一个片段。

I am also using fragments, so each menu item is a fragment.

推荐答案

请确保你调用

setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);

而不是

setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);

在你的SlidingMenu对象/片段/活动,以便菜单显示,只有当你从边缘拖动它/你的屏幕边框

On your SlidingMenu object/fragment/activity so that the menu shows only when you drag it from the edge/bezel of your screen

这篇关于滑动菜单的姿态覆盖图手势机器人的滚动手势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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