|
|
@@ -1,72 +1,84 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@android:color/holo_green_light"
|
|
|
- android:orientation="vertical"
|
|
|
- android:padding="5dp">
|
|
|
+ android:layout_height="@dimen/keyboard_height">
|
|
|
|
|
|
- <!-- 输入框 -->
|
|
|
- <EditText
|
|
|
- android:id="@+id/keyboard_input"
|
|
|
+ <com.atmob.keyboard_android.component.LoginComponent
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:cursorVisible="false"
|
|
|
- android:focusable="false"
|
|
|
- android:hint="复制过来的文本"
|
|
|
- android:inputType="none"
|
|
|
- android:longClickable="true"
|
|
|
- android:textSize="18sp" />
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <com.atmob.keyboard_android.component.VipComponent
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
|
|
- <!-- 数字键盘 + 操作按钮 -->
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:weightSum="4">
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="5dp">
|
|
|
|
|
|
- <GridLayout
|
|
|
- android:id="@+id/number_pad"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="3"
|
|
|
- android:columnCount="3"
|
|
|
- android:padding="5dp"
|
|
|
- android:rowCount="4">
|
|
|
+ <!-- 输入框 -->
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/keyboard_input"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:focusable="false"
|
|
|
+ android:hint="复制过来的文本"
|
|
|
+ android:inputType="none"
|
|
|
+ android:longClickable="true"
|
|
|
+ android:textSize="18sp" />
|
|
|
|
|
|
- <!-- 这里原有的静态按钮定义已全部删除 -->
|
|
|
- </GridLayout>
|
|
|
-
|
|
|
- <!-- 操作按钮 -->
|
|
|
+ <!-- 数字键盘 + 操作按钮 -->
|
|
|
<LinearLayout
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:weightSum="4">
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_paste"
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <GridLayout
|
|
|
+ android:id="@+id/number_pad"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="粘贴" />
|
|
|
+ android:layout_weight="3"
|
|
|
+ android:columnCount="3"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:rowCount="4">
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_delete"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="删除" />
|
|
|
+ <!-- 这里原有的静态按钮定义已全部删除 -->
|
|
|
+ </GridLayout>
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_clear"
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <!-- 操作按钮 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="清空" />
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_send"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="发送" />
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_paste"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="粘贴" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_delete"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="删除" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_clear"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="清空" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_send"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="发送" />
|
|
|
+ </LinearLayout>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
-</LinearLayout>
|
|
|
+</FrameLayout>
|