Android中是否有开源手势库? [英] Are there open source gesture libraries in Android?

查看:105
本文介绍了Android中是否有开源手势库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Android应用中定义了自己的手势。这是定义手势的唯一方法吗?

I have defined my own gestures in an Android app. Is this the only way to define gestures?

是否有任何标准的开源库已经有了手势的原始文件?

Are there any standard opensource libraries which will already have the gesture's raw file?

推荐答案

我一直在开发一个库,以在Android上支持基本的1 nad 2手指手势,功能非常非常简单。

I have been developing a library to support basic 1 nad 2 finger gestures on Android with a very very simple drop in functionality.

大多数手势可以轻松设置为:

Most gestures can be set as easily as:

view.setOn2FingerGestureListener (new On2FingerGestureListener () {
    @Override
    onSwipeup() {
    }

    onSwipedown() {
    }
});

该库是开源的,也可以作为 JAR 文件(.jar)。

The library is opensource and can also be downloaded as a JAR file (.jar).

我还没有决定尚未获得许可(很可能是Apache),因此目前未获得许可。

I haven't decided upon a license yet (will most probably be Apache), so currently it is under NO License.

这篇关于Android中是否有开源手势库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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