fragment_profile_download.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="?attr/colorSurface">
  7. <com.google.android.material.appbar.MaterialToolbar
  8. android:id="@+id/toolbar"
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. app:layout_constraintTop_toTopOf="parent"
  12. app:layout_constraintLeft_toLeftOf="parent"
  13. app:layout_constraintWidth_percent="1"
  14. app:navigationIcon="?homeAsUpIndicator" />
  15. <View
  16. android:id="@+id/guideline"
  17. android:layout_width="0dp"
  18. android:layout_height="0dp"
  19. android:orientation="vertical"
  20. android:visibility="invisible"
  21. app:layout_constraintBottom_toBottomOf="@id/toolbar"
  22. app:layout_constraintEnd_toEndOf="parent"
  23. app:layout_constraintStart_toStartOf="parent" />
  24. <ProgressBar
  25. android:id="@+id/progress"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:visibility="gone"
  29. app:layout_constraintTop_toBottomOf="@id/toolbar"
  30. app:layout_constraintLeft_toLeftOf="parent"
  31. app:layout_constraintRight_toRightOf="parent"
  32. app:layout_constraintBottom_toTopOf="@id/guideline"
  33. style="@style/Widget.AppCompat.ProgressBar.Horizontal" />
  34. <com.google.android.material.textfield.TextInputLayout
  35. android:id="@+id/profile_download_server"
  36. android:layout_width="0dp"
  37. android:layout_height="wrap_content"
  38. android:layout_marginTop="15dp"
  39. android:hint="@string/profile_download_server"
  40. app:layout_constraintTop_toBottomOf="@id/toolbar"
  41. app:layout_constraintLeft_toLeftOf="parent"
  42. app:layout_constraintRight_toRightOf="parent"
  43. app:layout_constraintWidth_percent=".8">
  44. <com.google.android.material.textfield.TextInputEditText
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent" />
  47. </com.google.android.material.textfield.TextInputLayout>
  48. <com.google.android.material.textfield.TextInputLayout
  49. android:id="@+id/profile_download_code"
  50. android:layout_width="0dp"
  51. android:layout_height="wrap_content"
  52. android:layout_marginVertical="15dp"
  53. android:hint="@string/profile_download_code"
  54. app:layout_constraintTop_toBottomOf="@id/profile_download_server"
  55. app:layout_constraintLeft_toLeftOf="parent"
  56. app:layout_constraintRight_toRightOf="parent"
  57. app:layout_constraintWidth_percent=".8"
  58. app:passwordToggleEnabled="true">
  59. <com.google.android.material.textfield.TextInputEditText
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:inputType="textPassword" />
  63. </com.google.android.material.textfield.TextInputLayout>
  64. <com.google.android.material.textfield.TextInputLayout
  65. android:id="@+id/profile_download_confirmation_code"
  66. android:layout_width="0dp"
  67. android:layout_height="wrap_content"
  68. android:layout_marginVertical="15dp"
  69. android:hint="@string/profile_download_confirmation_code"
  70. app:layout_constraintTop_toBottomOf="@id/profile_download_code"
  71. app:layout_constraintLeft_toLeftOf="parent"
  72. app:layout_constraintRight_toRightOf="parent"
  73. app:layout_constraintWidth_percent=".8"
  74. app:passwordToggleEnabled="true">
  75. <com.google.android.material.textfield.TextInputEditText
  76. android:layout_width="match_parent"
  77. android:layout_height="match_parent"
  78. android:inputType="textPassword" />
  79. </com.google.android.material.textfield.TextInputLayout>
  80. <com.google.android.material.textfield.TextInputLayout
  81. android:id="@+id/profile_download_imei"
  82. android:layout_width="0dp"
  83. android:layout_height="wrap_content"
  84. android:layout_marginTop="15dp"
  85. android:layout_marginBottom="6dp"
  86. android:hint="@string/profile_download_imei"
  87. app:layout_constraintTop_toBottomOf="@id/profile_download_confirmation_code"
  88. app:layout_constraintLeft_toLeftOf="parent"
  89. app:layout_constraintRight_toRightOf="parent"
  90. app:layout_constraintBottom_toTopOf="@id/profile_download_free_space"
  91. app:layout_constraintWidth_percent=".8"
  92. app:passwordToggleEnabled="true">
  93. <com.google.android.material.textfield.TextInputEditText
  94. android:layout_width="match_parent"
  95. android:layout_height="match_parent"
  96. android:inputType="textPassword" />
  97. </com.google.android.material.textfield.TextInputLayout>
  98. <TextView
  99. android:id="@+id/profile_download_free_space"
  100. android:layout_width="0dp"
  101. android:layout_height="wrap_content"
  102. android:gravity="center"
  103. android:textSize="11sp"
  104. android:layout_marginBottom="4dp"
  105. app:layout_constraintTop_toBottomOf="@id/profile_download_imei"
  106. app:layout_constraintLeft_toLeftOf="parent"
  107. app:layout_constraintRight_toRightOf="parent"
  108. app:layout_constraintBottom_toBottomOf="parent" />
  109. </androidx.constraintlayout.widget.ConstraintLayout>