1
0
Fork 0

renamed all SoftKeys for consistency and removed the unuse SoftTextEditKey

This commit is contained in:
sspanak 2024-09-09 10:44:49 +03:00 committed by Dimo Karaivanov
parent 0c06f21eee
commit ab21e4ca43
23 changed files with 80 additions and 130 deletions

View file

@ -8,7 +8,7 @@ import androidx.annotation.NonNull;
import io.github.sspanak.tt9.preferences.settings.SettingsStore; import io.github.sspanak.tt9.preferences.settings.SettingsStore;
import io.github.sspanak.tt9.ui.main.keys.SoftKey; import io.github.sspanak.tt9.ui.main.keys.SoftKey;
import io.github.sspanak.tt9.ui.main.keys.SoftNumberKey; import io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber;
public class Vibration { public class Vibration {
@NonNull private final SettingsStore settings; @NonNull private final SettingsStore settings;
@ -24,7 +24,7 @@ public class Vibration {
} }
public static int getPressVibration(SoftKey key) { public static int getPressVibration(SoftKey key) {
return key instanceof SoftNumberKey ? HapticFeedbackConstants.KEYBOARD_TAP : HapticFeedbackConstants.VIRTUAL_KEY; return key instanceof SoftKeyNumber ? HapticFeedbackConstants.KEYBOARD_TAP : HapticFeedbackConstants.VIRTUAL_KEY;
} }
public static int getHoldVibration() { public static int getHoldVibration() {

View file

@ -15,11 +15,11 @@ import java.util.Arrays;
import io.github.sspanak.tt9.R; import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.hacks.DeviceInfo; import io.github.sspanak.tt9.hacks.DeviceInfo;
import io.github.sspanak.tt9.ime.TraditionalT9; import io.github.sspanak.tt9.ime.TraditionalT9;
import io.github.sspanak.tt9.ui.main.keys.SoftCommandKey;
import io.github.sspanak.tt9.ui.main.keys.SoftKey; import io.github.sspanak.tt9.ui.main.keys.SoftKey;
import io.github.sspanak.tt9.ui.main.keys.SoftKeyFn;
import io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber;
import io.github.sspanak.tt9.ui.main.keys.SoftKeyPunctuation;
import io.github.sspanak.tt9.ui.main.keys.SoftKeySettings; import io.github.sspanak.tt9.ui.main.keys.SoftKeySettings;
import io.github.sspanak.tt9.ui.main.keys.SoftNumberKey;
import io.github.sspanak.tt9.ui.main.keys.SoftPunctuationKey;
class MainLayoutNumpad extends BaseMainLayout { class MainLayoutNumpad extends BaseMainLayout {
private boolean isTextEditingShown = false; private boolean isTextEditingShown = false;
@ -95,15 +95,15 @@ class MainLayoutNumpad extends BaseMainLayout {
if (keyId == R.id.soft_key_0) { if (keyId == R.id.soft_key_0) {
key.setEnabled(tt9 != null && !tt9.isInputModeNumeric()); key.setEnabled(tt9 != null && !tt9.isInputModeNumeric());
} else if (key.getClass().equals(SoftNumberKey.class)) { } else if (key.getClass().equals(SoftKeyNumber.class)) {
key.setVisibility(View.GONE); key.setVisibility(View.GONE);
} }
if (key.getClass().equals(SoftPunctuationKey.class)) { if (key.getClass().equals(SoftKeyPunctuation.class)) {
key.setVisibility(View.INVISIBLE); key.setVisibility(View.INVISIBLE);
} }
if (key.getClass().equals(SoftCommandKey.class)) { if (key.getClass().equals(SoftKeyFn.class)) {
key.setVisibility(View.VISIBLE); key.setVisibility(View.VISIBLE);
} }
@ -127,12 +127,12 @@ class MainLayoutNumpad extends BaseMainLayout {
isTextEditingShown = false; isTextEditingShown = false;
for (SoftKey key : getKeys()) { for (SoftKey key : getKeys()) {
if (key.getClass().equals(SoftNumberKey.class) || key.getClass().equals(SoftPunctuationKey.class)) { if (key.getClass().equals(SoftKeyNumber.class) || key.getClass().equals(SoftKeyPunctuation.class)) {
key.setVisibility(View.VISIBLE); key.setVisibility(View.VISIBLE);
key.setEnabled(true); key.setEnabled(true);
} }
if (key.getClass().equals(SoftCommandKey.class)) { if (key.getClass().equals(SoftKeyFn.class)) {
key.setVisibility(View.GONE); key.setVisibility(View.GONE);
} }

View file

@ -8,18 +8,18 @@ import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.languages.LanguageKind; import io.github.sspanak.tt9.languages.LanguageKind;
import io.github.sspanak.tt9.ui.Vibration; import io.github.sspanak.tt9.ui.Vibration;
public class SoftBackspaceKey extends SoftKey { public class SoftKeyBackspace extends SoftKey {
private int repeat = 0; private int repeat = 0;
public SoftBackspaceKey(Context context) { public SoftKeyBackspace(Context context) {
super(context); super(context);
} }
public SoftBackspaceKey(Context context, AttributeSet attrs) { public SoftKeyBackspace(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
public SoftBackspaceKey(Context context, AttributeSet attrs, int defStyleAttr) { public SoftKeyBackspace(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }

View file

@ -3,7 +3,7 @@ package io.github.sspanak.tt9.ui.main.keys;
import android.content.Context; import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
public class SoftKeyF3 extends SoftCommandKey { public class SoftKeyF3 extends SoftKeyFn {
public SoftKeyF3(Context context) { public SoftKeyF3(Context context) {
super(context); super(context);
} }

View file

@ -6,7 +6,7 @@ import android.util.AttributeSet;
import io.github.sspanak.tt9.R; import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.util.Characters; import io.github.sspanak.tt9.util.Characters;
public class SoftKeyF5 extends SoftCommandKey { public class SoftKeyF5 extends SoftKeyFn {
public SoftKeyF5(Context context) { public SoftKeyF5(Context context) {
super(context); super(context);
} }

View file

@ -6,10 +6,10 @@ import android.util.AttributeSet;
import io.github.sspanak.tt9.preferences.settings.SettingsStore; import io.github.sspanak.tt9.preferences.settings.SettingsStore;
import io.github.sspanak.tt9.ui.Vibration; import io.github.sspanak.tt9.ui.Vibration;
public class SoftFilterKey extends SoftKey { public class SoftKeyFilter extends SoftKey {
public SoftFilterKey(Context context) { super(context); setFontSize(); } public SoftKeyFilter(Context context) { super(context); setFontSize(); }
public SoftFilterKey(Context context, AttributeSet attrs) { super(context, attrs); setFontSize(); } public SoftKeyFilter(Context context, AttributeSet attrs) { super(context, attrs); setFontSize(); }
public SoftFilterKey(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); setFontSize(); } public SoftKeyFilter(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); setFontSize(); }
private void setFontSize() { private void setFontSize() {
complexLabelTitleSize = SettingsStore.SOFT_KEY_COMPLEX_LABEL_TITLE_RELATIVE_SIZE / 0.85f; complexLabelTitleSize = SettingsStore.SOFT_KEY_COMPLEX_LABEL_TITLE_RELATIVE_SIZE / 0.85f;

View file

@ -13,10 +13,10 @@ import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.preferences.settings.SettingsStore; import io.github.sspanak.tt9.preferences.settings.SettingsStore;
import io.github.sspanak.tt9.util.Characters; import io.github.sspanak.tt9.util.Characters;
public class SoftCommandKey extends SoftNumberKey { public class SoftKeyFn extends SoftKeyNumber {
public SoftCommandKey(Context context) { super(context);} public SoftKeyFn(Context context) { super(context);}
public SoftCommandKey(Context context, AttributeSet attrs) { super(context, attrs);} public SoftKeyFn(Context context, AttributeSet attrs) { super(context, attrs);}
public SoftCommandKey(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr);} public SoftKeyFn(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr);}
@Override protected void handleHold() { @Override protected void handleHold() {

View file

@ -6,16 +6,16 @@ import android.util.AttributeSet;
import io.github.sspanak.tt9.R; import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.ui.Vibration; import io.github.sspanak.tt9.ui.Vibration;
public class SoftInputModeKey extends SoftKey { public class SoftKeyInputMode extends SoftKey {
public SoftInputModeKey(Context context) { public SoftKeyInputMode(Context context) {
super(context); super(context);
} }
public SoftInputModeKey(Context context, AttributeSet attrs) { public SoftKeyInputMode(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
public SoftInputModeKey(Context context, AttributeSet attrs, int defStyleAttr) { public SoftKeyInputMode(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }

View file

@ -15,16 +15,16 @@ import io.github.sspanak.tt9.preferences.settings.SettingsStore;
import io.github.sspanak.tt9.ui.Vibration; import io.github.sspanak.tt9.ui.Vibration;
import io.github.sspanak.tt9.util.Logger; import io.github.sspanak.tt9.util.Logger;
public class SoftNumberKey extends SoftKey { public class SoftKeyNumber extends SoftKey {
public SoftNumberKey(Context context) { public SoftKeyNumber(Context context) {
super(context); super(context);
} }
public SoftNumberKey(Context context, AttributeSet attrs) { public SoftKeyNumber(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
public SoftNumberKey(Context context, AttributeSet attrs, int defStyleAttr) { public SoftKeyNumber(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }
@ -103,7 +103,7 @@ public class SoftNumberKey extends SoftKey {
// 2-9 // 2-9
Language language = tt9.getLanguage(); Language language = tt9.getLanguage();
if (language == null) { if (language == null) {
Logger.d("SoftNumberKey.getLabel", "Cannot generate a label when the language is NULL."); Logger.d("SoftKeyNumber.getLabel", "Cannot generate a label when the language is NULL.");
return ""; return "";
} }

View file

@ -4,17 +4,17 @@ import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.KeyEvent; import android.view.KeyEvent;
public class SoftOkKey extends SoftKey { public class SoftKeyOk extends SoftKey {
public SoftOkKey(Context context) { public SoftKeyOk(Context context) {
super(context); super(context);
} }
public SoftOkKey(Context context, AttributeSet attrs) { public SoftKeyOk(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
public SoftOkKey(Context context, AttributeSet attrs, int defStyleAttr) { public SoftKeyOk(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }

View file

@ -6,16 +6,16 @@ import android.util.AttributeSet;
import io.github.sspanak.tt9.R; import io.github.sspanak.tt9.R;
import io.github.sspanak.tt9.languages.LanguageKind; import io.github.sspanak.tt9.languages.LanguageKind;
public class SoftPunctuationKey extends SoftKey { public class SoftKeyPunctuation extends SoftKey {
public SoftPunctuationKey(Context context) { public SoftKeyPunctuation(Context context) {
super(context); super(context);
} }
public SoftPunctuationKey(Context context, AttributeSet attrs) { public SoftKeyPunctuation(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
public SoftPunctuationKey(Context context, AttributeSet attrs, int defStyleAttr) { public SoftKeyPunctuation(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }

View file

@ -1,50 +0,0 @@
package io.github.sspanak.tt9.ui.main.keys;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import androidx.core.graphics.drawable.DrawableCompat;
import androidx.core.widget.TextViewCompat;
import io.github.sspanak.tt9.R;
public class SoftKeyTextEdit extends SoftNumberKey {
public SoftKeyTextEdit(Context context) {
super(context);
}
public SoftKeyTextEdit(Context context, AttributeSet attrs) {
super(context, attrs);
}
public SoftKeyTextEdit(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
public void setDarkTheme(boolean darkEnabled) {
super.setDarkTheme(darkEnabled);
final int color = darkEnabled ? R.color.dark_button_text : R.color.button_text;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
TextViewCompat.setCompoundDrawableTintList(this, ColorStateList.valueOf(getContext().getColor(color)));
} else {
setDarkThemeLegacy(color);
}
}
private void setDarkThemeLegacy(int color) {
Drawable[] icons = getCompoundDrawables();
if (icons.length >= 4 && icons[3] != null) {
Drawable icon = DrawableCompat.wrap(icons[3]);
DrawableCompat.setTint(icon, getResources().getColor(color));
setCompoundDrawables(null, null, null, icon);
}
}
}

View file

@ -7,7 +7,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal">
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_1" android:id="@+id/soft_key_1"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -19,7 +19,7 @@
android:id="@+id/separator_1_1" android:id="@+id/separator_1_1"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_2" android:id="@+id/soft_key_2"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -55,7 +55,7 @@
android:id="@+id/separator_2_2" android:id="@+id/separator_2_2"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_8" android:id="@+id/soft_key_8"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -40,7 +40,7 @@
android:id="@+id/separator_1_2" android:id="@+id/separator_1_2"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftBackspaceKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyBackspace
android:id="@+id/soft_key_backspace" android:id="@+id/soft_key_backspace"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -81,7 +81,7 @@
android:id="@+id/separator_2_2" android:id="@+id/separator_2_2"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftFilterKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFilter
android:id="@+id/soft_key_filter_suggestions" android:id="@+id/soft_key_filter_suggestions"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -97,7 +97,7 @@
android:layout_height="@dimen/numpad_key_height" android:layout_height="@dimen/numpad_key_height"
android:layoutDirection="ltr"> android:layoutDirection="ltr">
<io.github.sspanak.tt9.ui.main.keys.SoftInputModeKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyInputMode
android:id="@+id/soft_key_input_mode" android:id="@+id/soft_key_input_mode"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -160,7 +160,7 @@
android:id="@+id/separator_4_2" android:id="@+id/separator_4_2"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftOkKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyOk
android:id="@+id/soft_key_ok" android:id="@+id/soft_key_ok"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
tools:ignore="ButtonOrder" tools:ignore="ButtonOrder"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_1" android:id="@+id/soft_key_1"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -8,7 +8,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_2" android:id="@+id/soft_key_2"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -16,7 +16,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_3" android:id="@+id/soft_key_3"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_4" android:id="@+id/soft_key_4"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -8,7 +8,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_5" android:id="@+id/soft_key_5"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -16,7 +16,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_6" android:id="@+id/soft_key_6"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_7" android:id="@+id/soft_key_7"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -8,7 +8,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_8" android:id="@+id/soft_key_8"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -16,7 +16,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_9" android:id="@+id/soft_key_9"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftPunctuationKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyPunctuation
android:id="@+id/soft_key_punctuation_1" android:id="@+id/soft_key_punctuation_1"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -8,7 +8,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftNumberKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyNumber
android:id="@+id/soft_key_0" android:id="@+id/soft_key_0"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -16,7 +16,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<io.github.sspanak.tt9.ui.main.keys.SoftPunctuationKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyPunctuation
android:id="@+id/soft_key_punctuation_2" android:id="@+id/soft_key_punctuation_2"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_101" android:id="@+id/soft_key_101"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -11,7 +11,7 @@
android:textSize="@dimen/soft_key_drawable_title_size" android:textSize="@dimen/soft_key_drawable_title_size"
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_102" android:id="@+id/soft_key_102"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -22,7 +22,7 @@
android:textSize="@dimen/soft_key_drawable_title_size" android:textSize="@dimen/soft_key_drawable_title_size"
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_103" android:id="@+id/soft_key_103"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_104" android:id="@+id/soft_key_104"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -11,7 +11,7 @@
android:textSize="@dimen/soft_key_drawable_title_size" android:textSize="@dimen/soft_key_drawable_title_size"
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_105" android:id="@+id/soft_key_105"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -22,7 +22,7 @@
android:textSize="@dimen/soft_key_drawable_title_size" android:textSize="@dimen/soft_key_drawable_title_size"
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_106" android:id="@+id/soft_key_106"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <merge xmlns:android="http://schemas.android.com/apk/res/android">
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_107" android:id="@+id/soft_key_107"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -11,7 +11,7 @@
android:textSize="@dimen/soft_key_drawable_title_size" android:textSize="@dimen/soft_key_drawable_title_size"
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_108" android:id="@+id/soft_key_108"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -23,7 +23,7 @@
android:visibility="gone" /> android:visibility="gone" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_109" android:id="@+id/soft_key_109"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -24,7 +24,7 @@
style="@style/hSeparator" style="@style/hSeparator"
android:background="@drawable/button_separator_dark" /> android:background="@drawable/button_separator_dark" />
<io.github.sspanak.tt9.ui.main.keys.SoftOkKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyOk
android:id="@+id/soft_key_ok" android:id="@+id/soft_key_ok"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -38,7 +38,7 @@
style="@style/hSeparator" style="@style/hSeparator"
android:background="@drawable/button_separator_dark" /> android:background="@drawable/button_separator_dark" />
<io.github.sspanak.tt9.ui.main.keys.SoftBackspaceKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyBackspace
android:id="@+id/soft_key_backspace" android:id="@+id/soft_key_backspace"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"

View file

@ -7,7 +7,7 @@
android:layout_height="@dimen/numpad_key_height" android:layout_height="@dimen/numpad_key_height"
tools:showIn="@layout/main_small"> tools:showIn="@layout/main_small">
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_101" android:id="@+id/soft_key_101"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -21,7 +21,7 @@
android:id="@+id/separator_10_1" android:id="@+id/separator_10_1"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_102" android:id="@+id/soft_key_102"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -35,7 +35,7 @@
android:id="@+id/separator_10_2" android:id="@+id/separator_10_2"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_103" android:id="@+id/soft_key_103"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -49,7 +49,7 @@
android:id="@+id/separator_10_3" android:id="@+id/separator_10_3"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_104" android:id="@+id/soft_key_104"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -63,7 +63,7 @@
android:id="@+id/separator_10_4" android:id="@+id/separator_10_4"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_105" android:id="@+id/soft_key_105"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -77,7 +77,7 @@
android:id="@+id/separator_10_5" android:id="@+id/separator_10_5"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_106" android:id="@+id/soft_key_106"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -91,7 +91,7 @@
android:id="@+id/separator_10_6" android:id="@+id/separator_10_6"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_107" android:id="@+id/soft_key_107"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -105,7 +105,7 @@
android:id="@+id/separator_10_7" android:id="@+id/separator_10_7"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_108" android:id="@+id/soft_key_108"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"
@ -119,7 +119,7 @@
android:id="@+id/separator_10_8" android:id="@+id/separator_10_8"
style="@style/numSeparator" /> style="@style/numSeparator" />
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey <io.github.sspanak.tt9.ui.main.keys.SoftKeyFn
android:id="@+id/soft_key_109" android:id="@+id/soft_key_109"
style="@android:style/Widget.Holo.Button.Borderless" style="@android:style/Widget.Holo.Button.Borderless"
android:layout_width="0dp" android:layout_width="0dp"