* added a command palette hotkey; * removed the Settings, Add Word and Change Keyboard hotkeys * added a compact command palette at the bottom * big refactoring: cleaned up the IME module, added UiHandler and cleaned up the MainViews * documentation update
131 lines
4 KiB
XML
131 lines
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="@dimen/candidate_height">
|
|
|
|
<TextView
|
|
android:id="@+id/status_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:textStyle="italic"
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/suggestions_bar"
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:scrollbars="none" />
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_soft_keys"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/soft_key_height"
|
|
android:baselineAligned="true"
|
|
android:orientation="horizontal"
|
|
tools:ignore="HardcodedText,KeyboardInaccessibleWidget">
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftKey
|
|
android:id="@+id/soft_key_command_palette"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="3"
|
|
android:focusable="false"
|
|
android:text="🛠"
|
|
android:textSize="@dimen/soft_key_icon_size" />
|
|
|
|
<View
|
|
android:id="@+id/main_separator_left"
|
|
style="@style/hSeparator"
|
|
android:background="@drawable/button_separator_dark" />
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftOkKey
|
|
android:id="@+id/soft_key_ok"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="5"
|
|
android:focusable="false"
|
|
android:text="@android:string/ok" />
|
|
|
|
<View
|
|
android:id="@+id/main_separator_right"
|
|
android:background="@drawable/button_separator_dark"
|
|
style="@style/hSeparator" />
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftBackspaceKey
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:id="@+id/soft_key_backspace"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="3"
|
|
android:focusable="false"
|
|
android:text="⌫"
|
|
android:textSize="@dimen/soft_key_icon_size" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_command_keys"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey
|
|
android:id="@+id/soft_key_1"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:textSize="@dimen/soft_key_icon_size"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<View
|
|
android:id="@+id/separator_2_1"
|
|
style="@style/numSeparator" />
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey
|
|
android:id="@+id/soft_key_2"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:textSize="@dimen/soft_key_icon_size"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<View
|
|
android:id="@+id/separator_2_2"
|
|
style="@style/numSeparator" />
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey
|
|
android:id="@+id/soft_key_3"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:textSize="@dimen/soft_key_icon_size"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<View
|
|
android:id="@+id/separator_3_1"
|
|
style="@style/numSeparator" />
|
|
|
|
<io.github.sspanak.tt9.ui.main.keys.SoftCommandKey
|
|
android:id="@+id/soft_key_0"
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
android:textSize="@dimen/soft_key_icon_size"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|