activity_main.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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/constraintLayout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:layout_gravity="center"
  9. android:baselineAligned="false"
  10. android:gravity="center|fill_vertical"
  11. tools:context="net.folivo.android.smsGatewayServer.MainActivity">
  12. <LinearLayout
  13. android:id="@+id/linLayoutServerOptions"
  14. android:layout_width="0dp"
  15. android:layout_height="wrap_content"
  16. android:layout_marginStart="16dp"
  17. android:layout_marginTop="4dp"
  18. android:layout_marginEnd="16dp"
  19. android:layout_marginBottom="4dp"
  20. android:background="@drawable/border"
  21. android:backgroundTintMode="src_atop"
  22. android:baselineAligned="false"
  23. android:gravity="center"
  24. android:orientation="vertical"
  25. android:padding="10dp"
  26. app:layout_constraintBottom_toTopOf="@+id/linLayoutCertificateOptions"
  27. app:layout_constraintEnd_toEndOf="parent"
  28. app:layout_constraintStart_toStartOf="parent"
  29. app:layout_constraintTop_toTopOf="parent">
  30. <androidx.appcompat.widget.SwitchCompat
  31. android:id="@+id/switchStartServer"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/btn_start_server" />
  35. <LinearLayout
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:baselineAligned="true"
  39. android:gravity="center">
  40. <TextView
  41. android:id="@+id/txtViewUsername"
  42. android:layout_width="150dp"
  43. android:layout_height="wrap_content"
  44. android:layout_weight="2"
  45. android:labelFor="@id/editTextUserName"
  46. android:text="@string/txtView_username" />
  47. <EditText
  48. android:id="@+id/editTextUserName"
  49. android:layout_width="200dp"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="3"
  52. android:autofillHints="username"
  53. android:ems="10"
  54. android:inputType="textPersonName" />
  55. </LinearLayout>
  56. <LinearLayout
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:gravity="center">
  60. <TextView
  61. android:id="@+id/textViewPassword"
  62. android:layout_width="150dp"
  63. android:layout_height="wrap_content"
  64. android:layout_weight="2"
  65. android:labelFor="@id/editTextPassword"
  66. android:text="@string/txtView_access_password" />
  67. <EditText
  68. android:id="@+id/editTextPassword"
  69. android:layout_width="200dp"
  70. android:layout_height="wrap_content"
  71. android:layout_weight="3"
  72. android:autofillHints="password"
  73. android:ems="10"
  74. android:inputType="textPassword" />
  75. </LinearLayout>
  76. </LinearLayout>
  77. <LinearLayout
  78. android:id="@+id/linLayoutCertificateOptions"
  79. android:layout_width="0dp"
  80. android:layout_height="wrap_content"
  81. android:layout_marginStart="16dp"
  82. android:layout_marginEnd="16dp"
  83. android:layout_marginBottom="4dp"
  84. android:background="@drawable/border"
  85. android:gravity="center"
  86. android:orientation="vertical"
  87. android:padding="10dp"
  88. app:layout_constraintBottom_toTopOf="@id/linLayoutDeleteMessagesOptions"
  89. app:layout_constraintEnd_toEndOf="parent"
  90. app:layout_constraintStart_toStartOf="parent"
  91. app:layout_constraintTop_toBottomOf="@id/linLayoutServerOptions">
  92. <LinearLayout
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:gravity="center">
  96. <TextView
  97. android:id="@+id/textViewPathKeyStore"
  98. android:layout_width="150dp"
  99. android:layout_height="wrap_content"
  100. android:layout_weight="2"
  101. android:labelFor="@id/editTextPathKeyStore"
  102. android:text="@string/txtView_keystore_path" />
  103. <EditText
  104. android:id="@+id/editTextPathKeyStore"
  105. android:layout_width="144dp"
  106. android:layout_height="wrap_content"
  107. android:layout_weight="3"
  108. android:autofillHints=""
  109. android:ems="10"
  110. android:inputType="textUri" />
  111. <ImageButton
  112. android:id="@+id/buttonCertificate"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_weight="2"
  116. android:contentDescription="@string/btn_certificate_content_Description"
  117. app:srcCompat="?android:attr/actionModeFindDrawable" />
  118. </LinearLayout>
  119. <LinearLayout
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:gravity="center">
  123. <TextView
  124. android:id="@+id/textViewKeyStorePassword"
  125. android:layout_width="150dp"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="2"
  128. android:labelFor="@id/editTextKeyStorePassword"
  129. android:text="@string/txtView_keystore_password" />
  130. <EditText
  131. android:id="@+id/editTextKeyStorePassword"
  132. android:layout_width="200dp"
  133. android:layout_height="wrap_content"
  134. android:layout_weight="3"
  135. android:autofillHints=""
  136. android:ems="10"
  137. android:inputType="textPassword" />
  138. </LinearLayout>
  139. <Button
  140. android:id="@+id/buttonCheckCertificateAvailability"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:text="@string/btn_check_certificate" />
  144. </LinearLayout>
  145. <LinearLayout
  146. android:id="@+id/linLayoutDeleteMessagesOptions"
  147. android:layout_width="0dp"
  148. android:layout_height="wrap_content"
  149. android:layout_marginStart="16dp"
  150. android:layout_marginEnd="16dp"
  151. android:layout_marginBottom="4dp"
  152. android:gravity="center"
  153. android:orientation="vertical"
  154. app:layout_constraintBottom_toBottomOf="parent"
  155. app:layout_constraintEnd_toEndOf="parent"
  156. app:layout_constraintStart_toStartOf="parent"
  157. app:layout_constraintTop_toBottomOf="@id/linLayoutCertificateOptions">
  158. <Button
  159. android:id="@+id/buttonDeleteMessages"
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:text="@string/btn_delete_messages" />
  163. </LinearLayout>
  164. </androidx.constraintlayout.widget.ConstraintLayout>