优化1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/background"
|
||||
@@ -60,14 +61,22 @@
|
||||
|
||||
|
||||
<!-- 补全建议区域(可横向滑动) -->
|
||||
<HorizontalScrollView
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/completion_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:background="@drawable/complete_bg">
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never"
|
||||
android:background="@drawable/complete_bg"
|
||||
android:id="@+id/completion_scroll">
|
||||
android:overScrollMode="never"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:id="@+id/completion_HorizontalScrollView">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/completion_suggestions"
|
||||
@@ -307,10 +316,24 @@
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/associate_close"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/complete_close_bg"
|
||||
android:gravity="center"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
<ImageView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:src="@drawable/associate_close"/>
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<!-- 第一行字母键 -->
|
||||
<LinearLayout
|
||||
@@ -323,80 +346,80 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_q"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_w"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_e"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_r"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_t"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_y"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_u"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_i"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_o"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_p"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -413,8 +436,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_a"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -422,8 +445,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_s"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -431,8 +454,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_d"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -440,8 +463,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_f"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -449,8 +472,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_g"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -458,8 +481,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_h"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -467,8 +490,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_j"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -476,8 +499,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_k"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -485,8 +508,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_l"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -503,9 +526,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_up"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -513,8 +536,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_z"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -522,8 +545,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_x"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -531,8 +554,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_c"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -540,8 +563,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_v"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -549,8 +572,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_b"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -558,8 +581,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_n"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -567,8 +590,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_m"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -577,8 +600,8 @@
|
||||
<TextView
|
||||
android:id="@+id/key_del"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -597,7 +620,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_123"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -606,7 +629,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_emoji"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -614,8 +637,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_space"
|
||||
android:layout_width="181dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="177dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -624,7 +647,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_send"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
|
||||
Reference in New Issue
Block a user