|
@@ -11,6 +11,10 @@
|
|
|
<variable
|
|
|
name="data"
|
|
|
type="com.yingyang.workbenches.entity.CountTrainBean" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="task"
|
|
|
+ type="com.yingyang.workbenches.entity.MyTaskBean" />
|
|
|
</data>
|
|
|
|
|
|
<LinearLayout
|
|
@@ -167,39 +171,96 @@
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:id="@+id/taskLayout"
|
|
|
android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginStart="@dimen/divider_48px"
|
|
|
+ android:layout_height="@dimen/divider_418px"
|
|
|
+ android:layout_marginStart="@dimen/divider_53px"
|
|
|
android:layout_marginTop="@dimen/divider_12px"
|
|
|
- android:layout_weight="1">
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_task">
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:id="@+id/iamgeTask"
|
|
|
+ android:layout_width="@dimen/divider_354px"
|
|
|
+ android:layout_height="@dimen/divider_354px"
|
|
|
+ android:layout_marginStart="@dimen/divider_31px"
|
|
|
+ app:cardCornerRadius="@dimen/divider_18px"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/taskImage"
|
|
|
+ android:layout_width="@dimen/divider_354px"
|
|
|
+ android:layout_height="@dimen/divider_354px"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ app:isCircle="@{false}"
|
|
|
+ app:loadHeadImg="@{task.getGameImage()}" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:layout_width="@dimen/divider_264px"
|
|
|
+ android:layout_height="@dimen/divider_50px"
|
|
|
+ android:layout_marginStart="@dimen/divider_39px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_39px"
|
|
|
+ android:background="@drawable/bg_task_progress"
|
|
|
+ android:text='@{"当前游戏"+task.currentTaskNum+"/8"}'
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="@dimen/divider_28px"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <View
|
|
|
+ android:id="@+id/viewLine"
|
|
|
+ android:layout_width="@dimen/divider_1px"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="@dimen/divider_31px"
|
|
|
+ android:layout_marginTop="@dimen/divider_7px"
|
|
|
+ android:layout_marginBottom="@dimen/divider_2px"
|
|
|
+ android:background="@color/color_FFE0E0E0"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iamgeTask"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:id="@+id/iamgeDoctor"
|
|
|
- android:layout_width="@dimen/divider_240px"
|
|
|
- android:layout_height="@dimen/divider_180px"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/viewLine"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="@dimen/divider_24px"
|
|
|
+ android:text="@string/training_progress"
|
|
|
+ android:textColor="@color/color_FF5467FF"
|
|
|
+ android:textSize="@dimen/divider_28px" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rvTask"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="@dimen/divider_32px"
|
|
|
+ android:layout_marginEnd="@dimen/divider_30px"
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/taskBtn"
|
|
|
+ android:layout_width="@dimen/divider_354px"
|
|
|
+ android:layout_height="@dimen/divider_65px"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginBottom="@dimen/divider_32px"
|
|
|
+ android:background="@drawable/bg_task_btn"
|
|
|
+ android:text="@string/start_exclusive_training"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="@dimen/divider_28px" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/taskBtn"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="@dimen/divider_30px"
|
|
|
- android:text="@string/task_in_progress"
|
|
|
- android:padding="@dimen/divider_10px"
|
|
|
- android:background="@drawable/bg_home_btn"
|
|
|
- android:textColor="@android:color/black"
|
|
|
- android:textSize="@dimen/divider_28px"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|