fragment_today_report.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@android:color/black"
  8. android:orientation="vertical">
  9. <androidx.constraintlayout.widget.ConstraintLayout
  10. android:id="@+id/con_header"
  11. android:layout_width="match_parent"
  12. android:layout_height="48dp"
  13. app:layout_constraintTop_toTopOf="parent">
  14. <androidx.constraintlayout.widget.Guideline
  15. android:id="@+id/guideline_one"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical"
  19. app:layout_constraintGuide_percent="0.12" />
  20. <androidx.constraintlayout.widget.Guideline
  21. android:id="@+id/guideline_two"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:orientation="vertical"
  25. app:layout_constraintGuide_percent="0.30" />
  26. <androidx.constraintlayout.widget.Guideline
  27. android:id="@+id/guideline_three"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:orientation="vertical"
  31. app:layout_constraintGuide_percent="0.72" />
  32. <TextView
  33. android:id="@+id/label_fight_bet"
  34. android:layout_width="0dp"
  35. android:layout_height="wrap_content"
  36. android:gravity="center"
  37. android:paddingTop="4dp"
  38. android:paddingBottom="4dp"
  39. android:text="Fight"
  40. android:textColor="@android:color/white"
  41. android:textSize="14sp"
  42. android:textStyle="bold"
  43. app:layout_constraintBottom_toBottomOf="parent"
  44. app:layout_constraintEnd_toStartOf="@+id/guideline_one"
  45. app:layout_constraintStart_toStartOf="parent"
  46. app:layout_constraintTop_toTopOf="parent" />
  47. <TextView
  48. android:id="@+id/label_type"
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:gravity="center"
  52. android:paddingTop="4dp"
  53. android:paddingBottom="4dp"
  54. android:text="Bet Type"
  55. android:textColor="@android:color/white"
  56. android:textSize="14sp"
  57. android:textStyle="bold"
  58. app:layout_constraintBottom_toBottomOf="parent"
  59. app:layout_constraintEnd_toStartOf="@+id/guideline_two"
  60. app:layout_constraintStart_toStartOf="@+id/guideline_one"
  61. app:layout_constraintTop_toTopOf="parent" />
  62. <TextView
  63. android:id="@+id/label_result"
  64. android:layout_width="0dp"
  65. android:layout_height="wrap_content"
  66. android:gravity="center"
  67. android:paddingTop="4dp"
  68. android:paddingBottom="4dp"
  69. android:text="Result(៛)"
  70. android:textColor="@android:color/white"
  71. android:textSize="14sp"
  72. android:textStyle="bold"
  73. app:layout_constraintBottom_toBottomOf="parent"
  74. app:layout_constraintEnd_toStartOf="@+id/label_time"
  75. app:layout_constraintStart_toEndOf="@+id/guideline_two"
  76. app:layout_constraintTop_toTopOf="parent" />
  77. <TextView
  78. android:id="@+id/label_time"
  79. android:layout_width="0dp"
  80. android:layout_height="wrap_content"
  81. android:layout_weight="0.1"
  82. android:gravity="center"
  83. android:paddingTop="4dp"
  84. android:paddingBottom="4dp"
  85. android:text="Time"
  86. android:textColor="@android:color/white"
  87. android:textSize="14sp"
  88. android:textStyle="bold"
  89. app:layout_constraintBottom_toBottomOf="parent"
  90. app:layout_constraintEnd_toEndOf="parent"
  91. app:layout_constraintStart_toStartOf="@+id/guideline_three"
  92. app:layout_constraintTop_toTopOf="parent" />
  93. </androidx.constraintlayout.widget.ConstraintLayout>
  94. <View
  95. android:id="@+id/line"
  96. android:layout_width="match_parent"
  97. android:layout_height="1dp"
  98. android:background="@color/color_gray_300"
  99. app:layout_constraintEnd_toEndOf="parent"
  100. app:layout_constraintStart_toStartOf="parent"
  101. app:layout_constraintTop_toBottomOf="@+id/con_header" />
  102. <ProgressBar
  103. android:id="@+id/progressTodayReport"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:indeterminateTint="@color/color_highlight"
  107. app:layout_constraintBottom_toBottomOf="parent"
  108. app:layout_constraintEnd_toEndOf="parent"
  109. app:layout_constraintStart_toStartOf="parent"
  110. app:layout_constraintTop_toTopOf="parent" />
  111. <androidx.recyclerview.widget.RecyclerView
  112. android:id="@+id/rv_today_report"
  113. android:layout_width="match_parent"
  114. android:layout_height="0dp"
  115. android:layout_weight="1"
  116. android:paddingBottom="8dp"
  117. app:layout_constraintEnd_toEndOf="parent"
  118. app:layout_constraintTop_toBottomOf="@+id/line"
  119. tools:listitem="@layout/today_report_item" />
  120. </androidx.constraintlayout.widget.ConstraintLayout>