【问题标题】:Android Gesture detection over an Imageview基于 Imageview 的 Android 手势检测
【发布时间】:2014-03-17 13:26:06
【问题描述】:

我正在创建一个安卓应用程序来检测手势。为此我推荐了the following link

在 main.xml 中,他们使用android.gesture.GestureOverlayView 来查找手势。 但我想使用Imageview 而不是android.gesture.GestureOverlayView

注意:我在互联网上搜索过。我得到了以下参考。但这对我没有帮助。

Android Gestures over an image

有可能吗?我怎样才能做到这一点?

【问题讨论】:

    标签: android imageview gesture gesture-recognition


    【解决方案1】:

    阅读GestureOverlayView的文档:

    手势输入的透明覆盖层,可以放置在其他小部件之上或包含其他小部件

    注意透明覆盖这两个词。您可以在任何视图之上使用它 - 只需使用适当的布局(提示:尝试 FrameLayoutRelativeLayout)或向其添加视图(因为它是 FrameLayout 的子类)。

    有这样的教程:Android Gestures - Tutorial

    【讨论】:

      猜你喜欢
      • 2011-09-23
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多