activity_main.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true"
  9. tools:context=".MainActivity">
  10. <ScrollView
  11. android:layout_width="match_parent"
  12. android:layout_height="0dp"
  13. app:layout_constraintBottom_toBottomOf="parent"
  14. app:layout_constraintTop_toTopOf="parent">
  15. <LinearLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical"
  19. android:padding="20dp">
  20. <com.google.android.material.textfield.TextInputLayout
  21. style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_marginTop="16dp"
  25. android:hint="Server">
  26. <com.google.android.material.textfield.MaterialAutoCompleteTextView
  27. android:id="@+id/et_server"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content" />
  30. </com.google.android.material.textfield.TextInputLayout>
  31. <com.google.android.material.button.MaterialButton
  32. android:id="@+id/btn_server"
  33. android:layout_width="match_parent"
  34. android:layout_height="56dp"
  35. android:layout_marginTop="16dp"
  36. android:text="Save" />
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="16dp"
  41. android:orientation="horizontal">
  42. <com.google.android.material.textfield.TextInputLayout
  43. android:layout_width="0dp"
  44. android:layout_height="wrap_content"
  45. android:layout_weight="1"
  46. android:hint="MCC">
  47. <com.google.android.material.textfield.TextInputEditText
  48. android:id="@+id/et_mcc"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:inputType="number"
  52. android:lines="1" />
  53. </com.google.android.material.textfield.TextInputLayout>
  54. <com.google.android.material.textfield.TextInputLayout
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. android:layout_marginLeft="16dp"
  58. android:layout_weight="1"
  59. android:hint="MNC">
  60. <com.google.android.material.textfield.TextInputEditText
  61. android:id="@+id/et_mnc"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:inputType="number"
  65. android:lines="1" />
  66. </com.google.android.material.textfield.TextInputLayout>
  67. <com.google.android.material.textfield.TextInputLayout
  68. android:layout_width="0dp"
  69. android:layout_height="wrap_content"
  70. android:layout_marginLeft="16dp"
  71. android:layout_weight="1"
  72. android:hint="Country">
  73. <com.google.android.material.textfield.TextInputEditText
  74. android:id="@+id/et_country"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:lines="1" />
  78. </com.google.android.material.textfield.TextInputLayout>
  79. </LinearLayout>
  80. <com.google.android.material.textfield.TextInputLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_marginTop="16dp"
  84. android:hint="Number">
  85. <com.google.android.material.textfield.TextInputEditText
  86. android:id="@+id/et_number"
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:inputType="number"
  90. android:lines="1" />
  91. </com.google.android.material.textfield.TextInputLayout>
  92. <com.google.android.material.textfield.TextInputLayout
  93. android:id="@+id/tl_iccid"
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_marginTop="16dp"
  97. android:hint="ICCID"
  98. app:endIconDrawable="@drawable/refreshoutlined"
  99. app:endIconMode="custom"
  100. app:endIconTint="@color/design_default_color_primary_dark">
  101. <com.google.android.material.textfield.TextInputEditText
  102. android:id="@+id/et_iccid"
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:inputType="number"
  106. android:lines="1" />
  107. </com.google.android.material.textfield.TextInputLayout>
  108. <com.google.android.material.textfield.TextInputLayout
  109. android:id="@+id/tl_imei"
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginTop="16dp"
  113. android:hint="IMEI"
  114. app:endIconDrawable="@drawable/refreshoutlined"
  115. app:endIconMode="custom"
  116. app:endIconTint="@color/design_default_color_primary_dark">
  117. <com.google.android.material.textfield.TextInputEditText
  118. android:id="@+id/et_imei"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:inputType="number"
  122. android:lines="1" />
  123. </com.google.android.material.textfield.TextInputLayout>
  124. <com.google.android.material.textfield.TextInputLayout
  125. android:id="@+id/tl_imsi"
  126. android:layout_width="match_parent"
  127. android:layout_height="wrap_content"
  128. android:layout_marginTop="16dp"
  129. android:hint="IMSI"
  130. app:endIconDrawable="@drawable/refreshoutlined"
  131. app:endIconMode="custom"
  132. app:endIconTint="@color/design_default_color_primary_dark">
  133. <com.google.android.material.textfield.TextInputEditText
  134. android:id="@+id/et_imsi"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:inputType="number"
  138. android:lines="1" />
  139. </com.google.android.material.textfield.TextInputLayout>
  140. <LinearLayout
  141. android:layout_width="match_parent"
  142. android:layout_height="70dp"
  143. android:layout_marginTop="32dp"
  144. android:gravity="center"
  145. android:orientation="vertical">
  146. <com.google.android.material.progressindicator.CircularProgressIndicator
  147. android:id="@+id/progress_save"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:indeterminate="true"
  151. android:visibility="gone" />
  152. <com.google.android.material.button.MaterialButton
  153. android:id="@+id/btn_save"
  154. android:layout_width="match_parent"
  155. android:layout_height="56dp"
  156. android:text="Save" />
  157. </LinearLayout>
  158. <LinearLayout
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:layout_marginTop="16dp"
  162. android:gravity="center"
  163. android:orientation="horizontal">
  164. <CheckBox
  165. android:id="@+id/cb_gsf"
  166. android:layout_width="wrap_content"
  167. android:layout_height="wrap_content"
  168. android:text="GSF"></CheckBox>
  169. <CheckBox
  170. android:id="@+id/cb_gms"
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:text="GMS"></CheckBox>
  174. <CheckBox
  175. android:id="@+id/cb_sms"
  176. android:layout_width="wrap_content"
  177. android:layout_height="wrap_content"
  178. android:text="SMS"></CheckBox>
  179. </LinearLayout>
  180. <LinearLayout
  181. android:layout_width="match_parent"
  182. android:layout_height="70dp"
  183. android:gravity="center"
  184. android:orientation="vertical">
  185. <com.google.android.material.progressindicator.CircularProgressIndicator
  186. android:id="@+id/progress_clear"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:indeterminate="true"
  190. android:visibility="gone" />
  191. <LinearLayout
  192. android:id="@+id/ll_btn"
  193. android:layout_width="match_parent"
  194. android:layout_height="wrap_content"
  195. android:orientation="horizontal">
  196. <com.google.android.material.button.MaterialButton
  197. android:id="@+id/btn_clear"
  198. android:layout_width="0dp"
  199. android:layout_height="56dp"
  200. android:layout_weight="1"
  201. android:text="Clear" />
  202. <com.google.android.material.button.MaterialButton
  203. android:id="@+id/btn_stop"
  204. android:layout_width="0dp"
  205. android:layout_height="56dp"
  206. android:layout_marginLeft="16dp"
  207. android:layout_weight="1"
  208. android:text="Stop" />
  209. </LinearLayout>
  210. </LinearLayout>
  211. <com.google.android.material.textfield.TextInputLayout
  212. android:layout_width="match_parent"
  213. android:layout_height="wrap_content"
  214. android:layout_marginTop="16dp"
  215. android:hint="OTP">
  216. <com.google.android.material.textfield.TextInputEditText
  217. android:id="@+id/et_otp"
  218. android:layout_width="match_parent"
  219. android:layout_height="wrap_content"
  220. android:inputType="number"
  221. android:lines="1" />
  222. </com.google.android.material.textfield.TextInputLayout>
  223. <com.google.android.material.button.MaterialButton
  224. android:id="@+id/btn_send"
  225. android:layout_width="match_parent"
  226. android:layout_height="56dp"
  227. android:layout_marginTop="16dp"
  228. android:text="Send" />
  229. </LinearLayout>
  230. </ScrollView>
  231. </androidx.constraintlayout.widget.ConstraintLayout>