Android Open Source - slidekeyboard Gesture Library Wrapper






From Project

Back to project page slidekeyboard.

License

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.

Java Source Code

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

}




Java Source Code List

com.asigbe.inputmethod.latin.BinaryDictionary.java
com.asigbe.inputmethod.latin.Dictionary.java
com.asigbe.inputmethod.latin.Suggest.java
com.asigbe.inputmethod.latin.TextEntryState.java
com.asigbe.inputmethod.latin.WordComposer.java
com.asigbe.slidekeyboard.provider.ContactContractsWrapper.java
com.asigbe.slidekeyboard.view.GestureLibraryWrapper.java
com.asigbe.slidekeyboard.view.GestureOverlayViewWrapper.java
com.asigbe.slidekeyboardpro.AsigbeKeyboard.java
com.asigbe.slidekeyboardpro.CandidateViewContainer.java
com.asigbe.slidekeyboardpro.CandidateView.java
com.asigbe.slidekeyboardpro.FirstUsageConfiguration.java
com.asigbe.slidekeyboardpro.KeyboardSwitcher.java
com.asigbe.slidekeyboardpro.LatinIMESettings.java
com.asigbe.slidekeyboardpro.MainActivity.java
com.asigbe.slidekeyboardpro.SlideKeyboardView.java
com.asigbe.slidekeyboardpro.SlideKeyboard.java