|
|
@@ -18,30 +18,6 @@
|
|
|
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
|
|
|
@@ -70,28 +46,44 @@
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
android:id="@+id/tvDate"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ style="@style/training_content_title_appcompattextview"
|
|
|
+ android:text="@string/date"
|
|
|
+ app:layout_constraintHorizontal_weight="1"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/tvExerciseTherapy" />
|
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tvExerciseTherapy"
|
|
|
+ style="@style/training_content_title_appcompattextview"
|
|
|
+ android:text="@string/exercise_therapy"
|
|
|
+ app:layout_constraintHorizontal_weight="1"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tvDate"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/tvCognitiveTraining" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tvCognitiveTraining"
|
|
|
+ style="@style/training_content_title_appcompattextview"
|
|
|
+ android:text="@string/cognitive_training"
|
|
|
+ app:layout_constraintHorizontal_weight="2"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tvExerciseTherapy"
|
|
|
+ app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rvTrainingContent"
|
|
|
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:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/contentTitleLayout" />
|
|
|
|
|
|
-
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</layout>
|