keyboard_layout.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="@dimen/keyboard_height"
  5. android:background="@mipmap/bg_keyboard">
  6. <com.atmob.keyboard_android.component.LoginComponent
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content" />
  9. <com.atmob.keyboard_android.component.VipComponent
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content" />
  12. <com.atmob.keyboard_android.component.SettingComponent
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content" />
  15. <LinearLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical"
  19. android:padding="5dp">
  20. <!-- 输入框 -->
  21. <EditText
  22. android:id="@+id/keyboard_input"
  23. android:layout_width="match_parent"
  24. android:layout_height="50dp"
  25. android:cursorVisible="false"
  26. android:focusable="false"
  27. android:hint="复制过来的文本"
  28. android:inputType="none"
  29. android:longClickable="true"
  30. android:textSize="18sp" />
  31. <!-- 数字键盘 + 操作按钮 -->
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:orientation="horizontal"
  36. android:weightSum="4">
  37. <GridLayout
  38. android:id="@+id/number_pad"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_weight="3"
  42. android:columnCount="3"
  43. android:padding="5dp"
  44. android:rowCount="4">
  45. <!-- 这里原有的静态按钮定义已全部删除 -->
  46. </GridLayout>
  47. <!-- 操作按钮 -->
  48. <LinearLayout
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1"
  52. android:orientation="vertical">
  53. <Button
  54. android:id="@+id/btn_paste"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:text="粘贴" />
  58. <Button
  59. android:id="@+id/btn_delete"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:text="删除" />
  63. <Button
  64. android:id="@+id/btn_clear"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:text="清空" />
  68. <Button
  69. android:id="@+id/btn_send"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:text="发送" />
  73. </LinearLayout>
  74. </LinearLayout>
  75. </LinearLayout>
  76. </FrameLayout>