Are there open source gesture libraries in Android? [closed]

隐身守侯 提交于 2019-12-05 05:48:59
Arnav Gupta

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() {
    }
});

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

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

AnujAroshA

This is the Android documentation which will describe the Gestures. GestureDetector class contains methods for most of the simple gestures that we need for our small applications.

Oscar S.

Pretty much all the libraries that have an extended Android touch UI are proprietary... HTC has HTC Sense, Samsung has TouchWiz, etc.

Apple holds a lot of patents for multi-touch things, and I think that their current battles against HTC and other phone manufacturers have discouraged the development of open source solutions. For a developer who invests their time on open source libraries with the hope to create a community around it and then maybe offer it commercially, to expect to receive "cease and desist letters" is not a good incentive.

But, you can always implement multi-touch gestures by yourself.

A good tutorial is How to use multi-touch in Android 2.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!