content_main.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:animateLayoutChanges="true"
  7. android:background="@color/activity_background"
  8. android:orientation="vertical"
  9. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  10. <LinearLayout
  11. android:id="@+id/layCfStatus"
  12. android:layout_width="match_parent"
  13. android:layout_height="90dp"
  14. android:animateLayoutChanges="true"
  15. android:orientation="horizontal"
  16. android:padding="8dp"
  17. app:layout_constraintBottom_toTopOf="parent"
  18. app:layout_constraintEnd_toEndOf="parent"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent">
  21. <LinearLayout
  22. android:layout_width="0dp"
  23. android:layout_height="match_parent"
  24. android:layout_marginEnd="2dp"
  25. android:layout_weight="1"
  26. android:background="@drawable/bg_main_color"
  27. android:orientation="vertical">
  28. <TextView
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_weight="1"
  32. android:gravity="center"
  33. android:text="@string/label_fight_no"
  34. android:textColor="@android:color/white"
  35. android:textStyle="bold" />
  36. <TextView
  37. android:id="@+id/txtFightNo"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:background="@drawable/bg_black"
  42. android:gravity="center"
  43. android:text="0"
  44. android:textColor="@android:color/white"
  45. android:textStyle="bold" />
  46. </LinearLayout>
  47. <LinearLayout
  48. android:layout_width="0dp"
  49. android:layout_height="match_parent"
  50. android:layout_marginStart="2dp"
  51. android:layout_marginEnd="2dp"
  52. android:layout_weight="1"
  53. android:background="@drawable/bg_main_color"
  54. android:orientation="vertical">
  55. <TextView
  56. android:id="@+id/txtStatus"
  57. android:layout_width="match_parent"
  58. android:layout_height="0dp"
  59. android:layout_weight="1"
  60. android:gravity="center"
  61. android:text="@string/label_status"
  62. android:textColor="@android:color/white"
  63. android:textStyle="bold" />
  64. <androidx.constraintlayout.widget.ConstraintLayout
  65. android:layout_width="match_parent"
  66. android:layout_height="37dp"
  67. android:background="@drawable/bg_black">
  68. <com.google.android.material.button.MaterialButton
  69. android:id="@+id/btnBettingStatus"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:backgroundTint="@color/betting_color_state"
  73. android:textColor="@android:color/white"
  74. android:textSize="12sp"
  75. app:cornerRadius="120dp"
  76. app:layout_constraintBottom_toBottomOf="parent"
  77. app:layout_constraintEnd_toEndOf="parent"
  78. app:layout_constraintStart_toStartOf="parent"
  79. app:layout_constraintTop_toTopOf="parent" />
  80. </androidx.constraintlayout.widget.ConstraintLayout>
  81. </LinearLayout>
  82. <LinearLayout
  83. android:layout_width="0dp"
  84. android:layout_height="match_parent"
  85. android:layout_marginStart="2dp"
  86. android:layout_marginEnd="2dp"
  87. android:layout_weight="1"
  88. android:background="@drawable/bg_main_color"
  89. android:orientation="vertical">
  90. <TextView
  91. android:id="@+id/txtTime"
  92. android:layout_width="match_parent"
  93. android:layout_height="0dp"
  94. android:layout_weight="1"
  95. android:gravity="center"
  96. android:text="@string/label_time"
  97. android:textColor="@android:color/white"
  98. android:textStyle="bold" />
  99. <androidx.constraintlayout.widget.ConstraintLayout
  100. android:layout_width="match_parent"
  101. android:layout_height="37dp"
  102. android:background="@drawable/bg_black">
  103. <com.google.android.material.button.MaterialButton
  104. android:id="@+id/btnBettingTime"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:backgroundTint="@color/betting_color_state"
  108. android:text="0"
  109. android:textColor="@android:color/white"
  110. android:textSize="12sp"
  111. app:cornerRadius="120dp"
  112. app:layout_constraintBottom_toBottomOf="parent"
  113. app:layout_constraintEnd_toEndOf="parent"
  114. app:layout_constraintStart_toStartOf="parent"
  115. app:layout_constraintTop_toTopOf="parent"
  116. app:layout_constraintVertical_bias="0.0" />
  117. </androidx.constraintlayout.widget.ConstraintLayout>
  118. </LinearLayout>
  119. <LinearLayout
  120. android:layout_width="0dp"
  121. android:layout_height="match_parent"
  122. android:layout_marginStart="2dp"
  123. android:layout_weight="1"
  124. android:background="@drawable/bg_main_color"
  125. android:orientation="vertical">
  126. <TextView
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="1"
  130. android:gravity="center"
  131. android:text="@string/label_winner"
  132. android:textColor="@android:color/white"
  133. android:textStyle="bold" />
  134. <TextView
  135. android:id="@+id/txtWinner"
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content"
  138. android:layout_weight="1"
  139. android:background="@drawable/bg_black"
  140. android:gravity="center"
  141. android:text="None"
  142. android:textColor="@android:color/white"
  143. android:textStyle="bold" />
  144. </LinearLayout>
  145. <LinearLayout
  146. android:id="@+id/linBetTie"
  147. android:layout_width="0dp"
  148. android:layout_height="match_parent"
  149. android:layout_marginStart="2dp"
  150. android:layout_weight="1"
  151. android:background="@drawable/bg_main_color"
  152. android:orientation="vertical"
  153. android:visibility="gone">
  154. <TextView
  155. android:layout_width="match_parent"
  156. android:layout_height="0dp"
  157. android:layout_weight="1"
  158. android:gravity="center"
  159. android:text="@string/label_tie"
  160. android:textColor="@android:color/white"
  161. android:textStyle="bold" />
  162. <androidx.constraintlayout.widget.ConstraintLayout
  163. android:layout_width="match_parent"
  164. android:layout_height="37dp"
  165. android:background="@drawable/bg_black">
  166. <com.google.android.material.button.MaterialButton
  167. android:id="@+id/btnBettingTie"
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:backgroundTint="@color/color_green_800"
  171. android:text="Bet Tie"
  172. android:textColor="@android:color/white"
  173. android:textSize="12sp"
  174. app:cornerRadius="120dp"
  175. app:layout_constraintBottom_toBottomOf="parent"
  176. app:layout_constraintEnd_toEndOf="parent"
  177. app:layout_constraintStart_toStartOf="parent"
  178. app:layout_constraintTop_toTopOf="parent" />
  179. </androidx.constraintlayout.widget.ConstraintLayout>
  180. </LinearLayout>
  181. </LinearLayout>
  182. <FrameLayout
  183. android:id="@+id/container"
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:layout_weight="1" />
  187. </LinearLayout>