|
@@ -29,7 +29,6 @@
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<ImageView
|
|
|
- android:visibility="gone"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/dp_11"
|
|
@@ -179,106 +178,83 @@
|
|
|
android:id="@+id/iv_certification_status"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="9dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
android:src="@drawable/icon_home_un_certification"
|
|
|
- android:visibility="visible"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/tv_nickname"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/tv_nickname"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/tv_nickname" />
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_avatar"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/rating_bar" />
|
|
|
|
|
|
+ <View
|
|
|
+ android:id="@+id/certification_tip_help_view"
|
|
|
+ android:layout_width="1px"
|
|
|
+ android:layout_height="1px"
|
|
|
+ android:layout_marginBottom="15dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_certification_status"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_certification_status" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_un_certification_tip"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="6dp"
|
|
|
- android:layout_marginTop="6dp"
|
|
|
android:src="@drawable/icon_home_certification_tip"
|
|
|
android:visibility="gone"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/iv_certification_status"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/iv_certification_status"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_certification_status" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/view_bg_teacher_extra"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="95dp"
|
|
|
- android:layout_marginStart="14dp"
|
|
|
- android:layout_marginTop="27dp"
|
|
|
- android:layout_marginEnd="14dp"
|
|
|
- android:background="#69B4FE"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_avatar" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/certification_tip_help_view" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_fans_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="28dp"
|
|
|
- android:layout_marginTop="7dp"
|
|
|
- android:drawableRight="@drawable/icon_arrow_background"
|
|
|
- android:drawablePadding="2dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
android:gravity="center"
|
|
|
android:paddingStart="8dp"
|
|
|
android:paddingEnd="8dp"
|
|
|
android:text="粉丝"
|
|
|
- android:textColor="@color/white"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_bg_teacher_extra"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_avatar"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_course_num_complete_title"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_fans_num" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_avatar" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_course_num_complete_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="28dp"
|
|
|
- android:layout_marginTop="7dp"
|
|
|
- android:drawableRight="@drawable/icon_arrow_background"
|
|
|
- android:drawablePadding="2dp"
|
|
|
android:gravity="center"
|
|
|
android:paddingStart="8dp"
|
|
|
android:paddingEnd="8dp"
|
|
|
android:text="已上课时"
|
|
|
- android:textColor="@color/white"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_bg_teacher_extra"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_fans_title"
|
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_fans_title"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_course_num_no_start_title"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_course_num_completed" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_fans_title" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_course_num_no_start_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="28dp"
|
|
|
- android:layout_marginTop="7dp"
|
|
|
- android:drawableRight="@drawable/icon_arrow_background"
|
|
|
- android:drawablePadding="2dp"
|
|
|
android:gravity="center"
|
|
|
android:paddingStart="8dp"
|
|
|
android:paddingEnd="8dp"
|
|
|
android:text="未上课时"
|
|
|
- android:textColor="@color/white"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_bg_teacher_extra"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_fans_title"
|
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_course_num_complete_title"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/view_bg_teacher_extra"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_course_num_not_start" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_fans_title" />
|
|
|
+
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_fans_num"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:includeFontPadding="false"
|
|
|
android:text="0"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_20"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_fans_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_17"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_fans_title"
|
|
|
app:layout_constraintRight_toRightOf="@+id/tv_fans_title"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_bg_teacher_extra"
|
|
|
- app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_fans_title"
|
|
|
tools:text="1344" />
|
|
|
|
|
|
<TextView
|
|
@@ -286,14 +262,11 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:text="0"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_20"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_course_num_complete_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_17"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_course_num_complete_title"
|
|
|
app:layout_constraintRight_toRightOf="@+id/tv_course_num_complete_title"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_bg_teacher_extra"
|
|
|
- app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_course_num_complete_title"
|
|
|
tools:text="34" />
|
|
|
|
|
|
<TextView
|
|
@@ -301,21 +274,18 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:text="0"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_20"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_course_num_no_start_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_17"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_course_num_no_start_title"
|
|
|
app:layout_constraintRight_toRightOf="@+id/tv_course_num_no_start_title"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_bg_teacher_extra"
|
|
|
- app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_course_num_no_start_title"
|
|
|
tools:text="34" />
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
android:id="@+id/group_teacher_extra"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:visibility="visible"
|
|
|
+ android:visibility="invisible"
|
|
|
app:constraint_referenced_ids="tv_course_num_not_start,tv_course_num_completed,tv_fans_num,tv_fans_title,tv_course_num_complete_title,tv_course_num_no_start_title" />
|
|
|
|
|
|
|
|
@@ -324,11 +294,11 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="14dp"
|
|
|
- android:layout_marginTop="14dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
android:layout_marginEnd="14dp"
|
|
|
android:background="@drawable/bg_white_10dp"
|
|
|
android:visibility="gone"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_bg_teacher_extra">
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_fans_num">
|
|
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
|
android:id="@+id/viewpager_menu"
|
|
@@ -338,20 +308,20 @@
|
|
|
android:scrollbars="none" />
|
|
|
</FrameLayout>
|
|
|
|
|
|
-
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:id="@+id/bg_announcement"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="44dp"
|
|
|
android:layout_marginStart="14dp"
|
|
|
- android:layout_marginTop="14dp"
|
|
|
+ android:layout_marginTop="@dimen/dp_10"
|
|
|
android:layout_marginEnd="14dp"
|
|
|
android:background="@drawable/bg_white_10dp"
|
|
|
android:elevation="2dp"
|
|
|
android:orientation="horizontal"
|
|
|
- android:visibility="gone"
|
|
|
+ android:visibility="visible"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/fl_top_menu">
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/fl_top_menu"
|
|
|
+ app:layout_goneMarginTop="@dimen/dp_20">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_bell"
|