|
@@ -0,0 +1,232 @@
|
|
|
|
+<?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="match_parent">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ android:adjustViewBounds="true"
|
|
|
|
+ android:src="@drawable/bg_user_info_top"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
+
|
|
|
|
+ <include
|
|
|
|
+ android:id="@+id/toolbar_include"
|
|
|
|
+ layout="@layout/common_toolbar_layout_white" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
|
+ android:id="@+id/view_top_bg"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
|
+ android:background="@drawable/bg_white_14dp"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_helper_line"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
|
|
+
|
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
+ android:id="@+id/iv_avatar"
|
|
|
|
+ android:layout_width="60dp"
|
|
|
|
+ android:layout_height="60dp"
|
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
|
+ android:layout_marginTop="18dp"
|
|
|
|
+ android:src="@drawable/icon_default_head"
|
|
|
|
+ app:civ_border_color="@color/white"
|
|
|
|
+ app:civ_border_width="2dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_top_bg"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_top_bg" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_nickname"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="22dp"
|
|
|
|
+ android:ellipsize="end"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:maxLines="1"
|
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
|
+ android:textSize="@dimen/sp_20"
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_id"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
|
+ tools:text="测试昵称" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_id"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="3dp"
|
|
|
|
+ android:drawableLeft="@drawable/icon_user_id_tag"
|
|
|
|
+ android:drawablePadding="5dp"
|
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
|
+ android:textSize="@dimen/sp_11"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_nickname"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_nickname"
|
|
|
|
+ tools:text="121341412312" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/vip_help_view"
|
|
|
|
+ android:layout_width="1px"
|
|
|
|
+ android:layout_height="1px"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_avatar" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_vip"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
|
+ android:src="@drawable/icon_vip_enable"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/vip_help_view"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/vip_help_view" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_detail_bg"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="140dp"
|
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
|
+ android:layout_marginTop="26dp"
|
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
|
+ android:background="@drawable/shape_fbfbfb_12dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_top_bg"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_top_bg"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_avatar" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_gender"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
|
+ android:src="@drawable/icon_gender_tag"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_detail_bg"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_detail_bg" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_gender_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:text="性别:"
|
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_gender"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_gender"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_gender" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_gender_value"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_gender"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_gender_title"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_gender"
|
|
|
|
+ tools:text="男生" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_line"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="0.5dp"
|
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_detail_bg"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_detail_bg"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_gender" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_music_subject"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
|
+ android:src="@drawable/icon_subject_tag"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_detail_bg"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_music_subject_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:text="声部:"
|
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_music_subject"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_music_subject"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_music_subject" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:paddingEnd="10dp"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_detail_bg"
|
|
|
|
+ android:id="@+id/tv_music_subject_value"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_music_subject"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_music_subject_title"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_music_subject"
|
|
|
|
+ tools:text="中音萨克斯,中音萨克斯,中音萨克斯,中音萨克斯,中音萨克斯" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_helper_line"
|
|
|
|
+ android:layout_width="1px"
|
|
|
|
+ android:layout_height="1px"
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_detail_bg" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/tv_video_course_line"
|
|
|
|
+ android:layout_width="4dp"
|
|
|
|
+ android:layout_height="17dp"
|
|
|
|
+ android:layout_marginStart="28dp"
|
|
|
|
+ android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_video_course_title"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_video_course_title" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_video_course_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="@dimen/dp_6"
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="精品视频课"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_video_course_line"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_top_bg" />
|
|
|
|
+
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_video_course_title"
|
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:overScrollMode="never"
|
|
|
|
+ android:scrollbars="none" />
|
|
|
|
+
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|