1
0
Fork 0
tt9/res/layout/mainview.xml
Dimo Karaivanov b5e44e2a51
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
2022-07-30 12:11:22 +03:00

77 lines
2.2 KiB
XML

<?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="58dp"
android:layout_marginLeft="0dp"
android:layout_marginTop="0dp"
android:layout_marginRight="0dp"
android:background="@drawable/bggradient"
android:baselineAligned="true"
android:gravity="bottom"
android:orientation="horizontal">
<ViewSwitcher
android:id="@+id/main_left"
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">
<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="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="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">
<include
layout="@layout/rbutton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp" />
</RelativeLayout>
</LinearLayout>