Initial code cleanup (#34)
* slightly optimized candidate scrolling animation * added missing Russian translations * the soft keys fit properly on the screen * central soft key is now always 'OK', because users do not care about the exact functions it performs in the code * removed 'mode notify'; it wasn't working on Android 11 anyway * removed 'space on 0' option; 0 is always 'space' now * disallowed global key remapping and removed the app setting
This commit is contained in:
parent
24ec816681
commit
b5e44e2a51
16 changed files with 90 additions and 229 deletions
|
|
@ -13,11 +13,11 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="2dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingTop="4dp"
|
||||
android:text="@string/main_left_insert"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="@color/button_text"
|
||||
|
|
@ -29,9 +29,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:drawableLeft="@drawable/holdicon"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="2dp"
|
||||
android:padding="0dp"
|
||||
android:text="@string/main_left_addword"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="@color/button_text"
|
||||
|
|
|
|||
|
|
@ -1,61 +1,77 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="58dp"
|
||||
android:layout_marginLeft="0dp"
|
||||
android:layout_marginRight="0dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginRight="0dp"
|
||||
android:background="@drawable/bggradient"
|
||||
android:baselineAligned="true"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal" >
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ViewSwitcher
|
||||
android:id="@+id/main_left"
|
||||
android:layout_width="190px"
|
||||
android:layout_height="58dp"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="1px"
|
||||
android:layout_marginRight="1px"
|
||||
android:layout_weight="5"
|
||||
android:background="@drawable/button_custom"
|
||||
android:clickable="true"
|
||||
android:focusable="false"
|
||||
android:longClickable="true" >
|
||||
android:longClickable="true">
|
||||
|
||||
<include android:id="@+id/main_left_nohold" layout="@layout/lbuttonnohold" />
|
||||
<include android:id="@+id/main_left_hold" layout="@layout/lbuttonhold" />
|
||||
<include
|
||||
android:id="@+id/main_left_nohold"
|
||||
layout="@layout/lbuttonnohold"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<include
|
||||
android:id="@+id/main_left_hold"
|
||||
layout="@layout/lbuttonhold"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</ViewSwitcher>
|
||||
|
||||
<Button
|
||||
android:id="@+id/main_mid"
|
||||
android:layout_width="94px"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="58dp"
|
||||
android:layout_marginLeft="1px"
|
||||
android:layout_marginRight="1px"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/button_custom"
|
||||
android:focusable="false"
|
||||
android:longClickable="true"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp"
|
||||
android:text="@string/main_mid"
|
||||
android:textColor="@color/button_text" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/main_right"
|
||||
android:layout_width="190px"
|
||||
android:layout_height="58dp"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="1px"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_weight="5"
|
||||
android:background="@drawable/button_custom"
|
||||
android:clickable="true"
|
||||
android:focusable="false"
|
||||
android:longClickable="true"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingTop="1dp" >
|
||||
android:paddingTop="1dp">
|
||||
|
||||
<include
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/rbutton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="0dp"
|
||||
layout="@layout/rbutton" />
|
||||
android:layout_marginEnd="0dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -13,13 +13,13 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:drawableLeft="@drawable/rcycle"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="2dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingTop="4dp"
|
||||
android:text="@string/main_right_upper"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="@color/button_text"
|
||||
|
|
@ -31,9 +31,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:drawableLeft="@drawable/holdicon"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="2dp"
|
||||
android:padding="0dp"
|
||||
android:text="@string/main_right_lower"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="@color/button_text"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue