|
@@ -1,18 +1,21 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_10"
|
|
|
android:layout_marginStart="13dp"
|
|
|
+ android:layout_marginTop="@dimen/dp_12"
|
|
|
android:layout_marginEnd="13dp"
|
|
|
- android:background="@drawable/shape_10dp_white">
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="12dp"
|
|
|
+ android:background="@drawable/bg_white_10dp">
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
android:id="@+id/iv_portrait"
|
|
|
android:layout_width="@dimen/dp_48"
|
|
|
android:layout_height="@dimen/dp_48"
|
|
|
- android:layout_marginStart="13dp"
|
|
|
android:layout_marginTop="12dp"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
@@ -22,82 +25,98 @@
|
|
|
android:id="@+id/tv_name"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/dp_11"
|
|
|
- android:layout_marginTop="@dimen/dp_8"
|
|
|
- android:layout_marginEnd="10dp"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
android:ellipsize="end"
|
|
|
android:maxLines="1"
|
|
|
android:text=""
|
|
|
- android:textStyle="bold"
|
|
|
- android:includeFontPadding="false"
|
|
|
android:textColor="@color/color_333333"
|
|
|
- android:textSize="@dimen/dp_16"
|
|
|
- app:layout_constraintEnd_toStartOf="@id/iv_setting"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/iv_group_tag"
|
|
|
app:layout_constraintStart_toEndOf="@id/iv_portrait"
|
|
|
- app:layout_constraintTop_toTopOf="@id/iv_portrait" />
|
|
|
+ app:layout_constraintTop_toTopOf="@id/iv_portrait"
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
+ tools:text="陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师陈老师" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_group_tag"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/dp_4"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/icon_teacher_tag"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_name"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_name"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_setting"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_name"
|
|
|
+ tools:visibility="visible" />
|
|
|
+
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_time"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/dp_11"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
|
- android:layout_marginEnd="@dimen/dp_15"
|
|
|
android:text=" "
|
|
|
- android:includeFontPadding="false"
|
|
|
android:textColor="@color/color_777777"
|
|
|
- android:textSize="@dimen/dp_14"
|
|
|
+ android:textSize="@dimen/dp_13"
|
|
|
app:layout_constraintStart_toEndOf="@id/iv_portrait"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tv_name" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_name"
|
|
|
+ tools:text="2023-07-24 15:34:26" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_roof"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="19dp"
|
|
|
- android:layout_marginStart="@dimen/dp_8"
|
|
|
+ android:layout_marginStart="@dimen/dp_6"
|
|
|
android:background="@drawable/bg_orange_line_45_shape"
|
|
|
android:paddingStart="@dimen/dp_8"
|
|
|
android:paddingEnd="@dimen/dp_8"
|
|
|
- android:text="置顶"
|
|
|
android:gravity="center"
|
|
|
android:includeFontPadding="false"
|
|
|
- android:textColor="@color/color_fe2451"
|
|
|
+ android:text="置顶"
|
|
|
+ android:textColor="@color/color_ff5151"
|
|
|
android:textSize="@dimen/dp_12"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tv_time"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_time"
|
|
|
app:layout_constraintStart_toEndOf="@id/tv_time"
|
|
|
- app:layout_constraintTop_toTopOf="@id/tv_time" />
|
|
|
+ />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_setting"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_12"
|
|
|
- android:padding="@dimen/dp_15"
|
|
|
android:src="@drawable/tc_ic_notice_setting"
|
|
|
android:visibility="visible"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_name"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_name" />
|
|
|
|
|
|
<View
|
|
|
- android:background="@color/color_f2f2f2"
|
|
|
android:id="@+id/view_line"
|
|
|
- android:layout_marginStart="12dp"
|
|
|
- android:layout_marginEnd="12dp"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_portrait"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"/>
|
|
|
+ android:layout_height="1px"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:background="@color/color_f2f2f2"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/iv_portrait" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_title"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_12"
|
|
|
- android:layout_marginEnd="@dimen/dp_13"
|
|
|
+ android:layout_marginTop="@dimen/dp_9"
|
|
|
android:text=""
|
|
|
+ android:maxLines="1"
|
|
|
+ android:ellipsize="end"
|
|
|
android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/dp_15"
|
|
|
android:textStyle="bold"
|
|
|
+ tools:text="今日作业"
|
|
|
+ android:includeFontPadding="false"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="@id/iv_portrait"
|
|
|
app:layout_constraintTop_toBottomOf="@id/view_line" />
|
|
@@ -107,31 +126,13 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/dp_6"
|
|
|
- android:layout_marginEnd="@dimen/dp_13"
|
|
|
- android:layout_marginBottom="@dimen/dp_15"
|
|
|
android:text=""
|
|
|
android:textColor="@color/color_777777"
|
|
|
android:textSize="@dimen/dp_14"
|
|
|
+ tools:text="1、练习云教练-欢乐颂10分钟\n2、测评云教练-欢乐颂分数达到80分以上"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="@id/tv_title"
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_title" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_read"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_20"
|
|
|
- android:layout_marginEnd="@dimen/dp_15"
|
|
|
- android:layout_marginBottom="@dimen/dp_18"
|
|
|
- android:drawableStart="@drawable/tc_ic_notice_read"
|
|
|
- android:drawablePadding="@dimen/dp_5"
|
|
|
- android:text=""
|
|
|
- android:textColor="#4B6F6C"
|
|
|
- android:textSize="@dimen/dp_16"
|
|
|
- android:visibility="gone"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="@id/tv_content"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tv_content" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|