|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
tools:ignore="ResourceName">
|
|
|
|
|
|
<data>
|
|
@@ -12,14 +12,85 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="训练内容"
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/courselayout"
|
|
|
+ style="@style/training_content_title_layout"
|
|
|
+ android:layout_marginStart="@dimen/divider_78px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_40px"
|
|
|
+ android:background="@drawable/bg_training_content"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/weekLayout"
|
|
|
+ tools:ignore="MissingConstraints">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/training_content_title_textview"
|
|
|
+ android:text="第一个疗程"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ tools:text="第一个疗程" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ style="@style/training_content_title_arrow"
|
|
|
+ android:src="@mipmap/icon_arrow" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/weekLayout"
|
|
|
+ style="@style/training_content_title_layout"
|
|
|
+ android:layout_marginStart="@dimen/divider_40px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_78px"
|
|
|
+ android:background="@drawable/bg_training_content"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/courselayout"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ tools:ignore="MissingConstraints">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/training_content_title_textview"
|
|
|
+ android:text="第一个疗程"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ tools:text="第一个疗程" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ style="@style/training_content_title_arrow"
|
|
|
+ android:src="@mipmap/icon_arrow" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/contentTitleLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/divider_70px"
|
|
|
+ android:layout_marginStart="@dimen/divider_32px"
|
|
|
+ android:layout_marginTop="@dimen/divider_26px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_32px"
|
|
|
+ android:background="@drawable/bg_training_content_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/courselayout">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tvDate"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="@dimen/divider_32px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_32px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_32px"
|
|
|
+ android:background="@drawable/bg_training_content_list"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/contentTitleLayout" />
|
|
|
+
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|