| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?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:background="@android:color/holo_green_light"
- android:orientation="vertical"
- android:padding="5dp">
- <!-- 输入框 -->
- <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" />
- <!-- 数字键盘 + 操作按钮 -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="4">
- <GridLayout
- android:id="@+id/number_pad"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:columnCount="3"
- android:rowCount="4"
- android:padding="5dp">
- <!-- 这里原有的静态按钮定义已全部删除 -->
- </GridLayout>
- <!-- 操作按钮 -->
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <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>
|