fragment_create_fighter.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.appcompat.widget.LinearLayoutCompat 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/color_black"
  8. android:orientation="vertical"
  9. android:padding="10dp"
  10. tools:context=".screen.fighter.CreateFighterFragment">
  11. <com.google.android.material.textfield.TextInputLayout
  12. android:id="@+id/til_name"
  13. style="@style/BoxInputLayout"
  14. android:layout_width="match_parent"
  15. android:layout_height="48dp"
  16. app:endIconMode="clear_text"
  17. app:hintEnabled="false">
  18. <androidx.appcompat.widget.AppCompatEditText
  19. android:id="@+id/et_name"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:background="@color/color_white"
  23. android:hint="@string/name"
  24. android:inputType="text"
  25. android:maxLength="50"
  26. android:padding="0dp" />
  27. </com.google.android.material.textfield.TextInputLayout>
  28. <com.google.android.material.textfield.TextInputLayout
  29. android:id="@+id/til_desc"
  30. style="@style/BoxInputLayout"
  31. android:layout_width="match_parent"
  32. android:layout_height="48dp"
  33. app:endIconMode="clear_text"
  34. app:hintEnabled="false">
  35. <androidx.appcompat.widget.AppCompatEditText
  36. android:id="@+id/et_desc"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:background="@color/color_white"
  40. android:hint="@string/description"
  41. android:inputType="text"
  42. android:maxLength="50"
  43. android:padding="0dp" />
  44. </com.google.android.material.textfield.TextInputLayout>
  45. <com.google.android.material.textfield.TextInputLayout
  46. android:id="@+id/til_weight"
  47. style="@style/BoxInputLayout"
  48. android:layout_width="match_parent"
  49. android:layout_height="48dp"
  50. app:endIconMode="clear_text"
  51. app:hintEnabled="false">
  52. <androidx.appcompat.widget.AppCompatEditText
  53. android:id="@+id/et_weight"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. android:background="@color/color_white"
  57. android:hint="@string/weight"
  58. android:inputType="text"
  59. android:maxLength="50"
  60. android:padding="0dp" />
  61. </com.google.android.material.textfield.TextInputLayout>
  62. <com.google.android.material.textfield.TextInputLayout
  63. android:id="@+id/til_height"
  64. style="@style/BoxInputLayout"
  65. android:layout_width="match_parent"
  66. android:layout_height="48dp"
  67. app:endIconMode="clear_text"
  68. app:hintEnabled="false">
  69. <androidx.appcompat.widget.AppCompatEditText
  70. android:id="@+id/et_height"
  71. android:layout_width="match_parent"
  72. android:layout_height="match_parent"
  73. android:background="@color/color_white"
  74. android:hint="@string/height"
  75. android:inputType="text"
  76. android:maxLength="50"
  77. android:padding="0dp" />
  78. </com.google.android.material.textfield.TextInputLayout>
  79. <com.google.android.material.textfield.TextInputLayout
  80. android:id="@+id/til_nationality"
  81. style="@style/BoxInputLayout"
  82. android:layout_width="match_parent"
  83. android:layout_height="48dp"
  84. app:endIconMode="clear_text"
  85. app:hintEnabled="false">
  86. <androidx.appcompat.widget.AppCompatEditText
  87. android:id="@+id/et_nationality"
  88. android:layout_width="match_parent"
  89. android:layout_height="match_parent"
  90. android:background="@color/color_white"
  91. android:hint="@string/nationality"
  92. android:inputType="text"
  93. android:maxLength="50"
  94. android:padding="0dp" />
  95. </com.google.android.material.textfield.TextInputLayout>
  96. <Button
  97. android:id="@+id/uploadButton"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_gravity="center"
  101. android:layout_marginBottom="16dp"
  102. android:paddingStart="16dp"
  103. android:paddingEnd="16dp"
  104. android:text="Upload Image" />
  105. <ImageView
  106. android:id="@+id/uploadedImageView"
  107. android:layout_width="200dp"
  108. android:layout_height="200dp"
  109. android:layout_gravity="center"
  110. android:layout_marginBottom="16dp"
  111. android:background="@color/color_gray_300"
  112. android:scaleType="centerCrop" />
  113. </androidx.appcompat.widget.LinearLayoutCompat>