Android Open Source - MorseStraightKey-Android Morse Keyboard






From Project

Back to project page MorseStraightKey-Android.

License

The source code is released under:

GNU General Public License

If you think the Android project MorseStraightKey-Android 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.savanto.morsekeyboard;
/* w  w w  .j  av a  2  s . co  m*/
import android.content.Context;
import android.inputmethodservice.Keyboard;

/**
 * @author savanto
 *
 */
public class MorseKeyboard extends Keyboard
{
  public static final int KEYCODE_DIT = 1;  // 0b1
  public static final int KEYCODE_DAH = 7;  // 0b111
  public static final int KEYCODE_SIGNAL = -10;
  public static final int KEYCODE_SHORT_GAP = -30;
  public static final int KEYCODE_MEDIUM_GAP = -70;

  public static final int KEYCODE_SETTINGS = -100;
  public static final int KEYCODE_REFERENCE = -101;

  public static final int KEYCODE_ENTER = 10;
  public static final int KEYCODE_GAP = 32;

  /**
   * @param context
   * @param xmlLayoutResId
   */
  public MorseKeyboard(Context context, int xmlLayoutResId)
  {
    super(context, xmlLayoutResId);
  }

  /**
   * @param context
   * @param xmlLayoutResId
   * @param modeId
   */
  public MorseKeyboard(Context context, int xmlLayoutResId, int modeId)
  {
    super(context, xmlLayoutResId, modeId);
  }
}




Java Source Code List

com.savanto.morsekeyboard.MorseCode.java
com.savanto.morsekeyboard.MorseKeyboardHelp.java
com.savanto.morsekeyboard.MorseKeyboardInputMethodService.java
com.savanto.morsekeyboard.MorseKeyboardSettings.java
com.savanto.morsekeyboard.MorseKeyboardView.java
com.savanto.morsekeyboard.MorseKeyboard.java
com.savanto.morsekeyboard.SeekBarPreference.java