|
@@ -2,11 +2,7 @@
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
- tools:ignore="MissingDefaultResource,ResourceName">
|
|
|
-
|
|
|
- <data>
|
|
|
-
|
|
|
- </data>
|
|
|
+ tools:ignore="ResourceName">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
@@ -21,14 +17,14 @@
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
- <ImageView
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
android:layout_width="@dimen/divider_48px"
|
|
|
android:layout_height="@dimen/divider_43px"
|
|
|
android:layout_marginStart="@dimen/divider_65px"
|
|
|
android:layout_marginTop="@dimen/divider_35px"
|
|
|
android:background="@mipmap/bg_home" />
|
|
|
|
|
|
- <TextView
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="@dimen/divider_14px"
|
|
@@ -39,7 +35,72 @@
|
|
|
android:textStyle="bold" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rvLeisureBrainType"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="@dimen/divider_37px"
|
|
|
+ android:layout_marginTop="@dimen/divider_110px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_36px"
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/layoutHead" />
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="@dimen/divider_38px"
|
|
|
+ android:layout_marginTop="@dimen/divider_18px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_18px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_18px"
|
|
|
+ android:background="@android:color/white"
|
|
|
+ app:cardCornerRadius="@dimen/divider_38px"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/rvLeisureBrainType"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tvTitle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/divider_31px"
|
|
|
+ android:text="@string/all_training"
|
|
|
+ android:textColor="@color/color_FF4A76FF"
|
|
|
+ android:textSize="@dimen/divider_42px"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
|
+ android:id="@+id/layoutTraining"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_margin="@dimen/divider_28px"
|
|
|
+ android:layout_marginTop="@dimen/divider_8px"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tvTitle">
|
|
|
+
|
|
|
+ <com.scwang.smart.refresh.header.ClassicsHeader
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rvLeisureBrain"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" />
|
|
|
+
|
|
|
+ </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</layout>
|