| | |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <androidx.core.widget.NestedScrollView |
| | | android:id="@+id/scrollView" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:scrollbars="none" |
| | | app:layout_constraintBottom_toTopOf="@id/ll_bottom" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:background="@color/page_bg" |
| | | android:orientation="vertical" |
| | | android:layout_height="wrap_content"> |
| | | |
| | | <com.facebook.drawee.view.SimpleDraweeView |
| | | android:id="@+id/banner" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="312dp" |
| | | android:scaleType="centerCrop" |
| | | android:foreground="@color/black33" |
| | | app:is_auto_loop="true" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="13dp" |
| | | android:layout_marginHorizontal="14dp" |
| | | android:background="@drawable/bg_white_10dp"> |
| | | <ImageView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/iv_collected" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintTop_toTopOf="@id/tv_name" |
| | | android:src="@mipmap/star_empty" |
| | | android:padding="5dp" |
| | | android:layout_marginEnd="9dp" |
| | | app:layout_constraintBottom_toBottomOf="@id/tv_name"/> |
| | | <TextView |
| | | android:id="@+id/tv_name" |
| | | android:layout_width="0dp" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintEnd_toStartOf="@id/iv_collected" |
| | | tools:text="跳绳训练" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_marginStart="10dp" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="18sp" |
| | | android:textStyle="bold"/> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_time" |
| | | tools:text="10分钟|H3" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="12sp" |
| | | android:layout_marginTop="6dp" |
| | | app:layout_constraintStart_toStartOf="@id/tv_name" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_name"/> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_type" |
| | | tools:text="瘦身|手臂" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="12sp" |
| | | android:layout_marginTop="6dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:layout_marginEnd="10dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_name"/> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="1dp" |
| | | android:background="@color/dividing_line_color" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_time" |
| | | android:layout_marginTop="11dp"/> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_info" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_time" |
| | | android:layout_marginTop="22dp" |
| | | android:textSize="12sp" |
| | | android:textColor="@color/textColor66" |
| | | android:layout_marginHorizontal="10dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | android:layout_marginBottom="12dp" |
| | | android:text="运动使人的体温升高,很多人在运动后由于燥"/> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/bg_white_10dp" |
| | | android:layout_marginTop="9dp" |
| | | android:orientation="vertical" |
| | | android:layout_marginHorizontal="14dp"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_height="wrap_content" |
| | | android:text="课程介绍" |
| | | android:layout_marginTop="11dp" |
| | | android:layout_marginStart="11dp" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="14sp" |
| | | android:textStyle="bold"/> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/rv_list" |
| | | android:layout_marginTop="3dp" |
| | | android:layout_marginBottom="12dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_1"/> |
| | | </LinearLayout> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_2" |
| | | android:layout_width="wrap_content" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_height="wrap_content" |
| | | android:text="更多课程" |
| | | android:layout_marginTop="18dp" |
| | | android:layout_marginStart="18dp" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold"/> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="6dp" |
| | | android:id="@+id/rv_course" /> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_tip" |
| | | android:layout_gravity="center" |
| | | android:drawableStart="@mipmap/tixingtishi" |
| | | android:gravity="center" |
| | | android:textColor="@color/colorRed" |
| | | android:textSize="11sp" |
| | | android:visibility="gone" |
| | | android:textStyle="bold" |
| | | android:layout_marginTop="3dp" |
| | | android:drawablePadding="5dp" |
| | | android:text="购买后“瘦身|手臂”相关课程均可查看;\n长期有效,我们将持续为您更新。" |
| | | android:layout_marginBottom="10dp"/> |
| | | |
| | | </LinearLayout> |
| | | </androidx.core.widget.NestedScrollView> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:text="课程详情" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_marginTop="55dp" |
| | | android:textColor="@color/white" |
| | | android:textSize="18sp" |
| | | android:id="@+id/tv_title" |
| | | android:textStyle="bold"/> |
| | | |
| | | <ImageView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintTop_toTopOf="@id/tv_title" |
| | | app:layout_constraintBottom_toBottomOf="@id/tv_title" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | android:src="@mipmap/back_white" |
| | | android:padding="10dp" |
| | | android:id="@+id/iv_back" |
| | | android:layout_marginStart="4dp"/> |
| | | |
| | | <RelativeLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="70dp" |
| | | android:layout_height="80dp" |
| | | android:background="@color/white" |
| | | android:gravity="center_vertical" |
| | | android:id="@+id/ll_bottom" |
| | | app:layout_constraintBottom_toBottomOf="parent"> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_start" |
| | | style="@style/style_btn_action" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:visibility="gone" |
| | | android:layout_marginHorizontal="45dp" |
| | | android:text="开始训练"/> |
| | | <LinearLayout |
| | | android:id="@+id/ll_bottom_1" |
| | | android:visibility="gone" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | <TextView |
| | | android:id="@+id/tv_price" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginStart="14dp" |
| | | android:gravity="center" |
| | | tools:text="¥0" |
| | | android:textColor="@color/colorRed" |
| | | android:textSize="24sp" |
| | | android:textStyle="bold" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="9dp" |
| | | android:layout_weight="1" |
| | | android:orientation="vertical"/> |
| | | |
| | | android:id="@+id/tv_send" |
| | | android:text="赠送好友" |
| | | android:drawableStart="@mipmap/send" |
| | | android:textSize="14sp" |
| | | android:layout_marginStart="26dp" |
| | | android:textColor="@color/textColor" |
| | | android:drawablePadding="8dp" |
| | | android:gravity="center"/> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="34dp" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_marginEnd="20dp" |
| | | android:textColor="@color/white" |
| | | android:textSize="16sp" |
| | | android:gravity="center" |
| | | android:paddingHorizontal="22dp" |
| | | android:id="@+id/tv_action" |
| | | style="@style/style_btn_action" |
| | | android:layout_width="160dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="10dp" |
| | | android:text="立即购买" /> |
| | | </LinearLayout> |
| | | |
| | | android:background="@drawable/bg_green_17dp"/> |
| | | </RelativeLayout> |
| | | |
| | | <androidx.coordinatorlayout.widget.CoordinatorLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:background="@color/page_bg" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintBottom_toTopOf="@id/ll_bottom"> |
| | | |
| | | <com.google.android.material.appbar.AppBarLayout |
| | | android:id="@+id/appbar" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical"> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:layout_scrollFlags="scroll|enterAlwaysCollapsed"> |
| | | <com.facebook.drawee.view.SimpleDraweeView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:id="@+id/iv_cover" |
| | | app:layout_constraintDimensionRatio="39:31" |
| | | app:placeholderImage="@color/page_bg" |
| | | app:actualImageScaleType="centerCrop"/> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | app:layout_constraintTop_toBottomOf="@id/iv_cover" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@color/white"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_teacher" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:textSize="12sp" |
| | | android:textColor="@color/textColor" |
| | | android:layout_marginEnd="20dp" |
| | | app:layout_constraintTop_toTopOf="@id/tv_name" |
| | | app:layout_constraintBottom_toBottomOf="@id/tv_name" |
| | | tools:text="导师 张可乐"/> |
| | | <TextView |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/tv_name" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toStartOf="@id/tv_teacher" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_marginTop="25dp" |
| | | android:textColor="@color/textColor" |
| | | tools:text="心里咨询课程" |
| | | android:textStyle="bold" |
| | | android:layout_marginStart="20sp" |
| | | android:layout_marginEnd="10dp" |
| | | android:textSize="19sp"/> |
| | | <TextView |
| | | android:id="@+id/tv_count" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_name" |
| | | android:layout_marginHorizontal="20dp" |
| | | android:layout_marginTop="18dp" |
| | | android:textColor="#CDCDCD" |
| | | android:textSize="10sp" |
| | | android:drawablePadding="6dp" |
| | | android:drawableStart="@mipmap/ic_count_grey" |
| | | tools:text="0人"/> |
| | | <!-- 如果要indicator动画 可以换成 MotionLayout实现--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="73dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_count" |
| | | android:background="@color/page_bg" |
| | | android:layout_marginTop="25dp"> |
| | | |
| | | <TextView |
| | | android:id="@+id/cb_intro" |
| | | android:text="简介" |
| | | android:layout_width="83dp" |
| | | android:gravity="center" |
| | | android:layout_marginTop="10dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:textSize="21sp" |
| | | android:textStyle="bold" |
| | | android:textColor="@color/textColor" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | android:layout_height="40dp"/> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_tab_1" |
| | | android:layout_width="27dp" |
| | | android:layout_height="11dp" |
| | | android:src="@mipmap/tab_indicator" |
| | | app:layout_constraintTop_toBottomOf="@id/cb_intro" |
| | | app:layout_constraintStart_toStartOf="@id/cb_intro" |
| | | app:layout_constraintEnd_toEndOf="@id/cb_intro"/> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_tab_2" |
| | | android:layout_width="27dp" |
| | | android:layout_height="11dp" |
| | | android:visibility="gone" |
| | | android:src="@mipmap/tab_indicator" |
| | | app:layout_constraintTop_toBottomOf="@id/cb_intro" |
| | | app:layout_constraintStart_toStartOf="@id/cb_chapter" |
| | | app:layout_constraintEnd_toEndOf="@id/cb_chapter"/> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_tab_3" |
| | | android:layout_width="27dp" |
| | | android:layout_height="11dp" |
| | | android:visibility="gone" |
| | | android:src="@mipmap/tab_indicator" |
| | | app:layout_constraintTop_toBottomOf="@id/cb_intro" |
| | | app:layout_constraintStart_toStartOf="@id/cb_push" |
| | | app:layout_constraintEnd_toEndOf="@id/cb_push"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/cb_chapter" |
| | | android:text="章节" |
| | | android:layout_width="83dp" |
| | | android:gravity="center" |
| | | android:layout_marginTop="10dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:textSize="16sp" |
| | | android:textStyle="bold" |
| | | android:textColor="@color/textColor99" |
| | | app:layout_constraintStart_toEndOf="@id/cb_intro" |
| | | android:layout_height="40dp"/> |
| | | |
| | | <TextView |
| | | android:id="@+id/cb_push" |
| | | android:text="相关推荐" |
| | | android:layout_width="wrap_content" |
| | | android:gravity="center" |
| | | android:layout_marginTop="10dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:textSize="16sp" |
| | | android:layout_marginStart="10dp" |
| | | android:textStyle="bold" |
| | | android:textColor="@color/textColor99" |
| | | app:layout_constraintStart_toEndOf="@id/cb_chapter" |
| | | android:layout_height="40dp"/> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | |
| | | |
| | | </com.google.android.material.appbar.AppBarLayout> |
| | | <androidx.core.widget.NestedScrollView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:id="@+id/scrollView" |
| | | app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical"> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="39dp" |
| | | android:layout_marginStart="22dp" |
| | | android:text="课程介绍" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold"/> |
| | | <WebView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/webView" |
| | | android:layout_marginTop="19dp"/> |
| | | <TextView |
| | | android:id="@+id/tv_1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="35dp" |
| | | android:layout_marginStart="22dp" |
| | | android:text="课程目录" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold"/> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/rv_chapter"/> |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="25dp" |
| | | android:layout_marginStart="22dp" |
| | | android:text="相关推荐" |
| | | android:id="@+id/tv_2" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold"/> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="14dp" |
| | | android:id="@+id/rv_push"/> |
| | | </LinearLayout> |
| | | |
| | | </androidx.core.widget.NestedScrollView> |
| | | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
| | | |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/cl_title" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="1px" |
| | | android:background="@color/dividing_line_color" |
| | | app:layout_constraintTop_toTopOf="@id/ll_bottom" /> |
| | | android:layout_height="0dp" |
| | | android:id="@+id/bg" |
| | | android:background="@color/white" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintBottom_toBottomOf="parent"/> |
| | | |
| | | <ImageView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/iv_back" |
| | | android:src="@mipmap/icon_back_white" |
| | | android:padding="10dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | android:layout_marginTop="44dp" |
| | | android:layout_marginStart="4dp" /> |
| | | <ImageView |
| | | android:id="@+id/iv_share" |
| | | android:layout_width="44dp" |
| | | android:layout_height="44dp" |
| | | android:src="@mipmap/ic_share" |
| | | android:padding="10dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintTop_toTopOf="@id/iv_back" |
| | | android:layout_marginEnd="4dp" |
| | | app:layout_constraintBottom_toBottomOf="@id/iv_back"/> |
| | | |
| | | <ImageView |
| | | android:layout_width="44dp" |
| | | android:layout_height="44dp" |
| | | android:id="@+id/iv_collect" |
| | | android:padding="10dp" |
| | | app:layout_constraintEnd_toStartOf="@id/iv_share" |
| | | app:layout_constraintTop_toTopOf="@id/iv_back" |
| | | android:layout_marginEnd="7dp" |
| | | app:layout_constraintBottom_toBottomOf="@id/iv_back" |
| | | android:src="@mipmap/uncollect"/> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="课程详情" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_marginTop="55dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | android:layout_marginBottom="20dp" |
| | | android:textColor="@color/white" |
| | | android:textSize="18sp" |
| | | android:textStyle="bold" |
| | | android:id="@+id/tvTitle"/> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |