Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ed1761b8e | ||
|
|
e9cc575c31 | ||
|
|
4262862a1b | ||
|
|
1313101d70 | ||
|
|
643b7e5443 | ||
|
|
524b371c63 | ||
|
|
aebdadb0fa |
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
notes.txt
|
notes.txt
|
||||||
|
/other
|
||||||
/files
|
/files
|
||||||
/misc
|
/misc
|
||||||
tmp/
|
tmp/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
 LeanKeyKeyboard
|
 LeanKeyKeyboard
|
||||||
=========
|
=========
|
||||||
|
|
||||||
[](https://www.mozilla.org/MPL/2.0/)
|
[](https://www.mozilla.org/MPL/2.0/)
|
||||||
@@ -37,8 +37,9 @@ __Standard installation via ADB__
|
|||||||
|
|
||||||
### Screenshots:
|
### Screenshots:
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
### Why using it:
|
### Why using it:
|
||||||
* LeanKeyKeyboard provides possibility to enter text with any length.
|
* LeanKeyKeyboard provides possibility to enter text with any length.
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
@@ -8,8 +8,8 @@ android {
|
|||||||
applicationId "org.liskovsoft.leankeykeyboard.pro"
|
applicationId "org.liskovsoft.leankeykeyboard.pro"
|
||||||
minSdkVersion project.properties.minSdkVersion
|
minSdkVersion project.properties.minSdkVersion
|
||||||
targetSdkVersion project.properties.targetSdkVersion
|
targetSdkVersion project.properties.targetSdkVersion
|
||||||
versionCode 54
|
versionCode 58
|
||||||
versionName "4.3.4"
|
versionName "4.3.8"
|
||||||
|
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ public class LeanbackKeyboardContainer {
|
|||||||
public static final int DIRECTION_LEFT = 1;
|
public static final int DIRECTION_LEFT = 1;
|
||||||
public static final int DIRECTION_RIGHT = 4;
|
public static final int DIRECTION_RIGHT = 4;
|
||||||
private Keyboard mAbcKeyboard;
|
private Keyboard mAbcKeyboard;
|
||||||
private Keyboard mAbcKeyboardRU;
|
|
||||||
private Button mActionButtonView;
|
private Button mActionButtonView;
|
||||||
private final float mAlphaIn;
|
private final float mAlphaIn;
|
||||||
private final float mAlphaOut;
|
private final float mAlphaOut;
|
||||||
@@ -318,7 +317,9 @@ public class LeanbackKeyboardContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All keyboard settings applied here
|
* Init currently displayed keyboard<br/>
|
||||||
|
* Note: all keyboard settings applied here<br/>
|
||||||
|
* Note: this method is called constantly on new field
|
||||||
* @param resources resources (not used)
|
* @param resources resources (not used)
|
||||||
* @param info current ime attributes
|
* @param info current ime attributes
|
||||||
*/
|
*/
|
||||||
@@ -1120,6 +1121,7 @@ public class LeanbackKeyboardContainer {
|
|||||||
LeanbackKeyboardView keyboardView = mMainKeyboardView;
|
LeanbackKeyboardView keyboardView = mMainKeyboardView;
|
||||||
Keyboard keyboard = mKeyboardManager.getNextKeyboard();
|
Keyboard keyboard = mKeyboardManager.getNextKeyboard();
|
||||||
mInitialMainKeyboard = keyboard;
|
mInitialMainKeyboard = keyboard;
|
||||||
|
mAbcKeyboard = keyboard;
|
||||||
keyboardView.setKeyboard(keyboard);
|
keyboardView.setKeyboard(keyboard);
|
||||||
|
|
||||||
showRunOnceDialog();
|
showRunOnceDialog();
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class LeanbackKeyboardController implements LeanbackKeyboardContainer.Voi
|
|||||||
private PointF mTempPoint;
|
private PointF mTempPoint;
|
||||||
private LeanbackKeyboardController.TouchEventListener mTouchEventListener;
|
private LeanbackKeyboardController.TouchEventListener mTouchEventListener;
|
||||||
private long prevTime;
|
private long prevTime;
|
||||||
|
private boolean mShowInput;
|
||||||
|
|
||||||
public LeanbackKeyboardController(final InputMethodService context, final LeanbackKeyboardController.InputListener listener) {
|
public LeanbackKeyboardController(final InputMethodService context, final LeanbackKeyboardController.InputListener listener) {
|
||||||
this(context, listener, new TouchNavSpaceTracker(), new LeanbackKeyboardContainer(context));
|
this(context, listener, new TouchNavSpaceTracker(), new LeanbackKeyboardContainer(context));
|
||||||
@@ -681,23 +682,37 @@ public class LeanbackKeyboardController implements LeanbackKeyboardContainer.Voi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onStartInput(EditorInfo var1) {
|
public void onStartInput(EditorInfo info) {
|
||||||
if (this.mContainer != null) {
|
if (mContainer != null) {
|
||||||
this.mContainer.onStartInput(var1);
|
mContainer.onStartInput(info);
|
||||||
this.initInputView();
|
initInputView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// prevent accidental kbd pop-up on FireTV devices
|
||||||
|
// more info: https://forum.xda-developers.com/fire-tv/general/guide-change-screen-keyboard-to-leankey-t3527675/page2
|
||||||
|
int maskAction = info.imeOptions & EditorInfo.IME_MASK_ACTION;
|
||||||
|
mShowInput = maskAction != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean showInputView() {
|
||||||
|
return mShowInput;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void onHideIme() {
|
||||||
|
mContext.requestHideSelf(InputMethodService.BACK_DISPOSITION_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onStartInputView() {
|
public void onStartInputView() {
|
||||||
this.mKeyDownReceived = false;
|
mKeyDownReceived = false;
|
||||||
if (this.mContainer != null) {
|
|
||||||
this.mContainer.onStartInputView();
|
if (mContainer != null) {
|
||||||
|
mContainer.onStartInputView();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mDoubleClickDetector.reset();
|
mDoubleClickDetector.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean onTouch(View view, MotionEvent event) {
|
public boolean onTouch(View view, MotionEvent event) {
|
||||||
Object tag = view.getTag();
|
Object tag = view.getTag();
|
||||||
if (tag != null && "Go".equals(tag)) {
|
if (tag != null && "Go".equals(tag)) {
|
||||||
|
|||||||
@@ -224,15 +224,19 @@ public class LeanbackImeService extends InputMethodService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* At this point, decision whether to show kbd taking place
|
||||||
|
* @return whether to show kbd
|
||||||
|
*/
|
||||||
@SuppressLint("MissingSuperCall")
|
@SuppressLint("MissingSuperCall")
|
||||||
@Override
|
@Override
|
||||||
public boolean onEvaluateInputViewShown() {
|
public boolean onEvaluateInputViewShown() {
|
||||||
return true;
|
return mKeyboardController.showInputView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFinishInputView(boolean var1) {
|
public void onFinishInputView(boolean finishingInput) {
|
||||||
super.onFinishInputView(var1);
|
super.onFinishInputView(finishingInput);
|
||||||
this.sendBroadcast(new Intent(IME_CLOSE));
|
this.sendBroadcast(new Intent(IME_CLOSE));
|
||||||
this.mSuggestionsFactory.clearSuggestions();
|
this.mSuggestionsFactory.clearSuggestions();
|
||||||
}
|
}
|
||||||
@@ -246,7 +250,7 @@ public class LeanbackImeService extends InputMethodService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onHideIme() {
|
public void onHideIme() {
|
||||||
this.requestHideSelf(0);
|
requestHideSelf(InputMethodService.BACK_DISPOSITION_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -266,10 +270,11 @@ public class LeanbackImeService extends InputMethodService {
|
|||||||
return isInputViewShown() && mKeyboardController.onKeyUp(keyCode, event) || super.onKeyUp(keyCode, event);
|
return isInputViewShown() && mKeyboardController.onKeyUp(keyCode, event) || super.onKeyUp(keyCode, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// FireTV fix
|
||||||
public boolean onShowInputRequested(int flags, boolean configChange) {
|
//@Override
|
||||||
return true;
|
//public boolean onShowInputRequested(int flags, boolean configChange) {
|
||||||
}
|
// return true;
|
||||||
|
//}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int onStartCommand(final Intent intent, final int flags, final int startId) {
|
public int onStartCommand(final Intent intent, final int flags, final int startId) {
|
||||||
@@ -298,6 +303,15 @@ public class LeanbackImeService extends InputMethodService {
|
|||||||
@Override
|
@Override
|
||||||
public void onStartInputView(EditorInfo info, boolean restarting) {
|
public void onStartInputView(EditorInfo info, boolean restarting) {
|
||||||
super.onStartInputView(info, restarting);
|
super.onStartInputView(info, restarting);
|
||||||
|
|
||||||
|
// FireTV: fix accidental kbd pop-ups
|
||||||
|
// more info: https://forum.xda-developers.com/fire-tv/general/guide-change-screen-keyboard-to-leankey-t3527675/page2
|
||||||
|
updateInputViewShown();
|
||||||
|
if (!mKeyboardController.showInputView()) {
|
||||||
|
onHideIme();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mKeyboardController.onStartInputView();
|
mKeyboardController.onStartInputView();
|
||||||
sendBroadcast(new Intent(IME_OPEN));
|
sendBroadcast(new Intent(IME_OPEN));
|
||||||
if (mKeyboardController.areSuggestionsEnabled()) {
|
if (mKeyboardController.areSuggestionsEnabled()) {
|
||||||
|
|||||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -15,6 +15,7 @@
|
|||||||
<string-array name="additional_languages">
|
<string-array name="additional_languages">
|
||||||
<item>Russian|ru</item>
|
<item>Russian|ru</item>
|
||||||
<item>Ukrainian|uk</item>
|
<item>Ukrainian|uk</item>
|
||||||
|
<item>Thai|th</item>
|
||||||
<item>Hebrew|he</item>
|
<item>Hebrew|he</item>
|
||||||
<item>Arabic|ar</item>
|
<item>Arabic|ar</item>
|
||||||
<item>Bulgarian|bg</item>
|
<item>Bulgarian|bg</item>
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
<string name="keyboardview_keycode_right">Right</string>
|
<string name="keyboardview_keycode_right">Right</string>
|
||||||
<string name="keyboard_headset_required_to_hear_password">Plug in a headset to hear password keys spoken.</string>
|
<string name="keyboard_headset_required_to_hear_password">Plug in a headset to hear password keys spoken.</string>
|
||||||
<string name="keyboard_password_character_no_headset">Dot.</string>
|
<string name="keyboard_password_character_no_headset">Dot.</string>
|
||||||
<string name="language_dialog_title">Select desired keyboards</string>
|
<string name="language_dialog_title">Select additional keyboards</string>
|
||||||
<string name="language_dialog_subtitle">To open dialog next time, long press on \'world\' button</string>
|
<string name="language_dialog_subtitle">To open dialog next time, long press on \'world\' button</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
9
leankeykeyboard/src/main/res/xml/accent_a_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ี" />
|
||||||
|
<Key android:keyLabel="๊" />
|
||||||
|
<Key android:keyLabel="ร" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_c_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="็" />
|
||||||
|
<Key android:keyLabel="่" />
|
||||||
|
<Key android:keyLabel="๋" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
8
leankeykeyboard/src/main/res/xml/accent_d_th.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ย" />
|
||||||
|
<Key android:keyLabel="บ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_e_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="๓" />
|
||||||
|
<Key android:keyLabel="๔" />
|
||||||
|
<Key android:keyLabel="ุ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
7
leankeykeyboard/src/main/res/xml/accent_f_th.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฐ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
7
leankeykeyboard/src/main/res/xml/accent_g_th.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ล" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
7
leankeykeyboard/src/main/res/xml/accent_h_th.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฅ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_i_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="๙" />
|
||||||
|
<Key android:keyLabel="ๆ" />
|
||||||
|
<Key android:keyLabel="๐" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
7
leankeykeyboard/src/main/res/xml/accent_j_th.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฃ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
7
leankeykeyboard/src/main/res/xml/accent_k_th.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฟ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_o_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ไ" />
|
||||||
|
<Key android:keyLabel="ำ" />
|
||||||
|
<Key android:keyLabel="ฎ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_p2_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ธ" />
|
||||||
|
<Key android:keyLabel="ั" />
|
||||||
|
<Key android:keyLabel="ํ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_p_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="พ" />
|
||||||
|
<Key android:keyLabel="ฑ" />
|
||||||
|
<Key android:keyLabel="ะ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_q_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฝ" />
|
||||||
|
<Key android:keyLabel="ฦ" />
|
||||||
|
<Key android:keyLabel="๑" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_r_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="3641" />
|
||||||
|
<Key android:keyLabel="3638" />
|
||||||
|
<Key android:keyLabel="3662" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_s_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ณ" />
|
||||||
|
<Key android:keyLabel="น" />
|
||||||
|
<Key android:keyLabel="ฯ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_t_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ค" />
|
||||||
|
<Key android:keyLabel="๕" />
|
||||||
|
<Key android:keyLabel="ต" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_u_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ข" />
|
||||||
|
<Key android:keyLabel="๘" />
|
||||||
|
<Key android:keyLabel="ช" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_w_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="๒" />
|
||||||
|
<Key android:keyLabel="ภ" />
|
||||||
|
<Key android:keyLabel="๓" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_x_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ด" />
|
||||||
|
<Key android:keyLabel="ฌ" />
|
||||||
|
<Key android:keyLabel="้" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_y_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="๖" />
|
||||||
|
<Key android:keyLabel="จ" />
|
||||||
|
<Key android:keyLabel="๗" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
9
leankeykeyboard/src/main/res/xml/accent_z_th.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<Row>
|
||||||
|
<Key android:keyLabel="ฆ" />
|
||||||
|
<Key android:keyLabel="ก" />
|
||||||
|
<Key android:keyLabel="ฏ" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||
66
leankeykeyboard/src/main/res/xml/qwerty_th.xml
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Keyboard android:keyWidth="@dimen/key_width" android:keyHeight="@dimen/key_height" android:horizontalGap="@dimen/keyboard_horizontal_gap" android:verticalGap="@dimen/keyboard_vertical_gap"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- Thai keyboard -->
|
||||||
|
<!-- https://en.wikipedia.org/wiki/Thai_(Unicode_block) -->
|
||||||
|
<Row android:rowEdgeFlags="top">
|
||||||
|
<Key android:codes="49" android:popupKeyboard="@xml/shift_1" android:keyEdgeFlags="left" android:keyLabel="1" />
|
||||||
|
<Key android:codes="50" android:popupKeyboard="@xml/shift_2" android:keyLabel="2" />
|
||||||
|
<Key android:codes="51" android:popupKeyboard="@xml/shift_3" android:keyLabel="3" />
|
||||||
|
<Key android:codes="52" android:popupKeyboard="@xml/shift_4" android:keyLabel="4" />
|
||||||
|
<Key android:codes="53" android:popupKeyboard="@xml/shift_5" android:keyLabel="5" />
|
||||||
|
<Key android:codes="54" android:popupKeyboard="@xml/shift_6" android:keyLabel="6" />
|
||||||
|
<Key android:codes="55" android:popupKeyboard="@xml/shift_7" android:keyLabel="7" />
|
||||||
|
<Key android:codes="56" android:popupKeyboard="@xml/shift_8" android:keyLabel="8" />
|
||||||
|
<Key android:codes="57" android:popupKeyboard="@xml/shift_9" android:keyLabel="9" />
|
||||||
|
<Key android:codes="48" android:popupKeyboard="@xml/shift_0" android:keyLabel="0" />
|
||||||
|
<Key android:codes="-5" android:keyEdgeFlags="right" android:keyLabel="@string/keyboardview_keycode_delete" android:keyIcon="@drawable/ic_ime_delete" />
|
||||||
|
</Row>
|
||||||
|
<Row>
|
||||||
|
<Key android:popupKeyboard="@xml/accent_q_th" android:keyLabel="ฝ" android:keyEdgeFlags="left" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_w_th" android:keyLabel="๒" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_e_th" android:keyLabel="๓" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_r_th" android:keyLabel="ู" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_t_th" android:keyLabel="ค" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_y_th" android:keyLabel="๖" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_u_th" android:keyLabel="ข" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_i_th" android:keyLabel="๙" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_o_th" android:keyLabel="ไ" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_p_th" android:keyLabel="พ" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_p2_th" android:keyLabel="ธ" android:keyEdgeFlags="right" />
|
||||||
|
</Row>
|
||||||
|
<Row>
|
||||||
|
<Key android:popupKeyboard="@xml/accent_a_th" android:keyLabel="ี" android:keyEdgeFlags="left" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_s_th" android:keyLabel="ณ" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_d_th" android:keyLabel="ย" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_f_th" android:keyLabel="ฐ" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_g_th" android:keyLabel="ล" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_h_th" android:keyLabel="ฅ" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_j_th" android:keyLabel="ฃ" />
|
||||||
|
<Key android:keyLabel="ฟ" />
|
||||||
|
<Key android:keyLabel="ฤ" />
|
||||||
|
<Key android:keyLabel="ห" />
|
||||||
|
<Key android:keyLabel="ş" android:keyEdgeFlags="right" />
|
||||||
|
</Row>
|
||||||
|
<Row>
|
||||||
|
<Key android:popupKeyboard="@xml/accent_z_th" android:keyLabel="ฆ" android:keyEdgeFlags="left" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_x_th" android:keyLabel="ด" />
|
||||||
|
<Key android:popupKeyboard="@xml/accent_c_th" android:keyLabel="็" />
|
||||||
|
<Key android:keyLabel="า" />
|
||||||
|
<Key android:keyLabel="ษ" />
|
||||||
|
<Key android:keyLabel="ส" />
|
||||||
|
<Key android:keyLabel="ศ" />
|
||||||
|
<Key android:keyLabel="ว" />
|
||||||
|
<Key android:keyLabel="ซ" />
|
||||||
|
<Key android:keyLabel="ง" />
|
||||||
|
<Key android:keyLabel="," android:keyEdgeFlags="right" />
|
||||||
|
</Row>
|
||||||
|
<Row android:rowEdgeFlags="bottom">
|
||||||
|
<Key android:codes="-2" android:keyEdgeFlags="left" android:keyLabel="@string/keyboardview_keycode_mode_change" android:keyIcon="@drawable/ic_ime_symbols" />
|
||||||
|
<Key android:codes="-1" android:keyLabel="@string/keyboardview_keycode_shift" android:keyIcon="@drawable/ic_ime_shift_off" />
|
||||||
|
<Key android:codes="-9" android:keyLabel="@string/keyboardview_keycode_lang" android:keyIcon="@drawable/ic_ime_world" />
|
||||||
|
<Key android:keyWidth="@dimen/space_key_width" android:codes="32" android:keyLabel="@string/keyboardview_keycode_space" android:keyIcon="@drawable/ic_ime_space_th" />
|
||||||
|
<Key android:codes="-3" android:keyLabel="@string/keyboardview_keycode_left" android:keyIcon="@drawable/ic_ime_left_arrow" />
|
||||||
|
<Key android:codes="-4" android:keyEdgeFlags="right" android:keyLabel="@string/keyboardview_keycode_right" android:keyIcon="@drawable/ic_ime_right_arrow" />
|
||||||
|
</Row>
|
||||||
|
</Keyboard>
|
||||||