activity_free_train.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. tools:ignore="ResourceName">
  6. <androidx.constraintlayout.widget.ConstraintLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:background="@mipmap/icon_uniform_background">
  10. <LinearLayout
  11. android:id="@+id/layoutHead"
  12. android:layout_width="@dimen/divider_195px"
  13. android:layout_height="wrap_content"
  14. android:orientation="horizontal"
  15. app:layout_constraintLeft_toLeftOf="parent"
  16. app:layout_constraintTop_toTopOf="parent">
  17. <androidx.appcompat.widget.AppCompatImageView
  18. android:layout_width="@dimen/divider_48px"
  19. android:layout_height="@dimen/divider_43px"
  20. android:layout_marginStart="@dimen/divider_65px"
  21. android:layout_marginTop="@dimen/divider_35px"
  22. android:background="@mipmap/bg_home" />
  23. <androidx.appcompat.widget.AppCompatTextView
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_marginStart="@dimen/divider_14px"
  27. android:layout_marginTop="@dimen/divider_38px"
  28. android:text="@string/home_pager"
  29. android:textColor="@android:color/white"
  30. android:textSize="@dimen/divider_28px"
  31. android:textStyle="bold" />
  32. </LinearLayout>
  33. <androidx.recyclerview.widget.RecyclerView
  34. android:id="@+id/rvTrainType"
  35. android:layout_width="wrap_content"
  36. android:layout_height="match_parent"
  37. android:layout_marginStart="@dimen/divider_37px"
  38. android:layout_marginTop="@dimen/divider_110px"
  39. android:layout_marginEnd="@dimen/divider_36px"
  40. app:layout_constraintBottom_toBottomOf="parent"
  41. app:layout_constraintLeft_toLeftOf="parent"
  42. app:layout_constraintTop_toBottomOf="@+id/layoutHead" />
  43. <androidx.cardview.widget.CardView
  44. android:layout_width="0dp"
  45. android:layout_height="match_parent"
  46. android:layout_marginStart="@dimen/divider_38px"
  47. android:layout_marginTop="@dimen/divider_18px"
  48. android:layout_marginEnd="@dimen/divider_18px"
  49. android:layout_marginBottom="@dimen/divider_18px"
  50. app:cardBackgroundColor="@android:color/white"
  51. app:cardCornerRadius="@dimen/divider_38px"
  52. app:layout_constraintBottom_toBottomOf="parent"
  53. app:layout_constraintLeft_toRightOf="@id/rvTrainType"
  54. app:layout_constraintRight_toRightOf="parent"
  55. app:layout_constraintTop_toTopOf="parent">
  56. <androidx.constraintlayout.widget.ConstraintLayout
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent">
  59. <androidx.appcompat.widget.AppCompatTextView
  60. android:id="@+id/tvTitle"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_marginTop="@dimen/divider_31px"
  64. android:text="@string/all_training"
  65. android:textColor="@color/color_FF4A76FF"
  66. android:textSize="@dimen/divider_42px"
  67. android:textStyle="bold"
  68. app:layout_constraintLeft_toLeftOf="parent"
  69. app:layout_constraintRight_toRightOf="parent"
  70. app:layout_constraintTop_toTopOf="parent" />
  71. <com.scwang.smartrefresh.layout.SmartRefreshLayout
  72. android:id="@+id/freeTrainSwipe"
  73. android:layout_width="match_parent"
  74. android:layout_height="0dp"
  75. app:layout_constraintBottom_toBottomOf="parent"
  76. app:layout_constraintLeft_toLeftOf="parent"
  77. app:layout_constraintRight_toRightOf="parent"
  78. app:layout_constraintTop_toBottomOf="@+id/tvTitle">
  79. <androidx.recyclerview.widget.RecyclerView
  80. android:id="@+id/rvTrain"
  81. android:layout_width="match_parent"
  82. android:layout_height="match_parent"
  83. android:layout_marginStart="@dimen/divider_16px"
  84. android:layout_marginTop="@dimen/divider_8px"
  85. android:layout_marginBottom="@dimen/divider_8px" />
  86. </com.scwang.smartrefresh.layout.SmartRefreshLayout>
  87. <LinearLayout
  88. android:id="@+id/emptyLayout"
  89. android:layout_width="match_parent"
  90. android:layout_height="0dp"
  91. android:orientation="vertical"
  92. android:visibility="gone"
  93. app:layout_constraintBottom_toBottomOf="parent"
  94. app:layout_constraintLeft_toLeftOf="parent"
  95. app:layout_constraintRight_toRightOf="parent"
  96. app:layout_constraintTop_toBottomOf="@+id/tvTitle"
  97. tools:ignore="MissingConstraints">
  98. <androidx.appcompat.widget.AppCompatImageView style="@style/empty_image_view_style" />
  99. <androidx.appcompat.widget.AppCompatTextView style="@style/empty_text_view_style" />
  100. </LinearLayout>
  101. </androidx.constraintlayout.widget.ConstraintLayout>
  102. </androidx.cardview.widget.CardView>
  103. </androidx.constraintlayout.widget.ConstraintLayout>
  104. </layout>