keyboard_layout.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <!-- 登录组件 -->
  7. <com.atmob.keyboard_android.component.LoginComponent
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:visibility="gone" />
  11. <!-- VIP组件 -->
  12. <com.atmob.keyboard_android.component.VipComponent
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:visibility="gone" />
  16. <!-- 设置组件 -->
  17. <com.atmob.keyboard_android.component.SettingComponent
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:visibility="gone" />
  21. <!-- 键盘组件 -->
  22. <com.atmob.keyboard_android.component.KeyBoardContainerComponent
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content" />
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="vertical"
  29. android:padding="5dp"
  30. android:visibility="gone">
  31. <!-- 输入框 -->
  32. <EditText
  33. android:id="@+id/keyboard_input"
  34. android:layout_width="match_parent"
  35. android:layout_height="50dp"
  36. android:cursorVisible="false"
  37. android:focusable="false"
  38. android:hint="复制过来的文本"
  39. android:inputType="none"
  40. android:longClickable="true"
  41. android:textSize="18sp" />
  42. <!-- 数字键盘 + 操作按钮 -->
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:orientation="horizontal"
  47. android:weightSum="4">
  48. <GridLayout
  49. android:id="@+id/number_pad"
  50. android:layout_width="0dp"
  51. android:layout_height="wrap_content"
  52. android:layout_weight="3"
  53. android:columnCount="3"
  54. android:padding="5dp"
  55. android:rowCount="4">
  56. <!-- 这里原有的静态按钮定义已全部删除 -->
  57. </GridLayout>
  58. <!-- 操作按钮 -->
  59. <LinearLayout
  60. android:layout_width="0dp"
  61. android:layout_height="wrap_content"
  62. android:layout_weight="1"
  63. android:orientation="vertical">
  64. <Button
  65. android:id="@+id/btn_paste"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:text="粘贴" />
  69. <Button
  70. android:id="@+id/btn_delete"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:text="删除" />
  74. <Button
  75. android:id="@+id/btn_clear"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:text="清空" />
  79. <Button
  80. android:id="@+id/btn_send"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:text="发送" />
  84. </LinearLayout>
  85. </LinearLayout>
  86. </LinearLayout>
  87. </FrameLayout>