Back to project page slidekeyboard.
The source code is released under:
MIT License
If you think the Android project slidekeyboard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.asigbe.slidekeyboard.view; /* ww w . j av a2s . c o m*/ import java.util.ArrayList; import android.content.Context; import android.gesture.Gesture; import android.gesture.GestureLibraries; import android.gesture.GestureLibrary; import android.gesture.Prediction; import com.asigbe.slidekeyboardpro.R; /** * Wrapper used for retro-compatibility. * * @author Delali Zigah */ public class GestureLibraryWrapper { private final GestureLibrary gestureLibrary; /** * Creates a wrapper for the gesture library. */ public GestureLibraryWrapper(Context context) { this.gestureLibrary = GestureLibraries.fromRawResource(context, R.raw.gestures); } /** * Loads gestures. */ public boolean load() { return this.gestureLibrary.load(); } /** * Identifies a gesture. */ public ArrayList<Prediction> recognize(Gesture gesture) { return this.gestureLibrary.recognize(gesture); } }