activity_main.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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:hint="@string/editTextUserName_hint"
  55. android:inputType="textPersonName" />
  56. </LinearLayout>
  57. <LinearLayout
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:gravity="center">
  61. <TextView
  62. android:id="@+id/textViewPassword"
  63. android:layout_width="150dp"
  64. android:layout_height="wrap_content"
  65. android:layout_weight="2"
  66. android:labelFor="@id/editTextPassword"
  67. android:text="@string/txtView_access_password" />
  68. <EditText
  69. android:id="@+id/editTextPassword"
  70. android:layout_width="200dp"
  71. android:layout_height="wrap_content"
  72. android:layout_weight="3"
  73. android:autofillHints="password"
  74. android:ems="10"
  75. android:hint="@string/editTextPasswort_hint"
  76. android:inputType="textPassword" />
  77. </LinearLayout>
  78. </LinearLayout>
  79. <LinearLayout
  80. android:id="@+id/linLayoutCertificateOptions"
  81. android:layout_width="0dp"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="16dp"
  84. android:layout_marginEnd="16dp"
  85. android:layout_marginBottom="4dp"
  86. android:background="@drawable/border"
  87. android:gravity="center"
  88. android:orientation="vertical"
  89. android:padding="10dp"
  90. app:layout_constraintBottom_toTopOf="@id/linLayoutDeleteMessagesOptions"
  91. app:layout_constraintEnd_toEndOf="parent"
  92. app:layout_constraintStart_toStartOf="parent"
  93. app:layout_constraintTop_toBottomOf="@id/linLayoutServerOptions">
  94. <LinearLayout
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:gravity="center">
  98. <TextView
  99. android:id="@+id/textViewPathKeyStore"
  100. android:layout_width="150dp"
  101. android:layout_height="wrap_content"
  102. android:layout_weight="2"
  103. android:labelFor="@id/editTextPathKeyStore"
  104. android:text="@string/txtView_keystore_path" />
  105. <EditText
  106. android:id="@+id/editTextPathKeyStore"
  107. android:layout_width="144dp"
  108. android:layout_height="wrap_content"
  109. android:layout_weight="3"
  110. android:autofillHints=""
  111. android:ems="10"
  112. android:inputType="textUri" />
  113. <ImageButton
  114. android:id="@+id/buttonCertificate"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_weight="2"
  118. android:contentDescription="@string/btn_certificate_content_Description"
  119. app:srcCompat="?android:attr/actionModeFindDrawable" />
  120. </LinearLayout>
  121. <LinearLayout
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:gravity="center">
  125. <TextView
  126. android:id="@+id/textViewKeyStorePassword"
  127. android:layout_width="150dp"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="2"
  130. android:labelFor="@id/editTextKeyStorePassword"
  131. android:text="@string/txtView_keystore_password" />
  132. <EditText
  133. android:id="@+id/editTextKeyStorePassword"
  134. android:layout_width="200dp"
  135. android:layout_height="wrap_content"
  136. android:layout_weight="3"
  137. android:autofillHints=""
  138. android:ems="10"
  139. android:inputType="textPassword" />
  140. </LinearLayout>
  141. <Button
  142. android:id="@+id/buttonCheckCertificateAvailability"
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:text="@string/btn_check_certificate" />
  146. </LinearLayout>
  147. <LinearLayout
  148. android:id="@+id/linLayoutDeleteMessagesOptions"
  149. android:layout_width="0dp"
  150. android:layout_height="wrap_content"
  151. android:layout_marginStart="16dp"
  152. android:layout_marginEnd="16dp"
  153. android:layout_marginBottom="4dp"
  154. android:gravity="center"
  155. android:orientation="vertical"
  156. app:layout_constraintBottom_toBottomOf="parent"
  157. app:layout_constraintEnd_toEndOf="parent"
  158. app:layout_constraintStart_toStartOf="parent"
  159. app:layout_constraintTop_toBottomOf="@id/linLayoutCertificateOptions">
  160. <Button
  161. android:id="@+id/buttonDeleteMessages"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content"
  164. android:text="@string/btn_delete_messages" />
  165. </LinearLayout>
  166. </androidx.constraintlayout.widget.ConstraintLayout>