|
@@ -0,0 +1,366 @@
|
|
|
+<?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
|
|
|
+ android:id="@+id/iv_top_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:src="@drawable/jg_main_music_top_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_status_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1px"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_practice"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
+ android:src="@drawable/jg_practice_study_bt"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_status_bar" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_tag"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:src="@drawable/icon_institution_img"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_status_bar" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="2dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_131415"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_tag"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_tag"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_tag"
|
|
|
+ tools:text="满天都是小星星机构" />
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_subject"
|
|
|
+ android:layout_width="66dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_search_bg">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_subject"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:drawableEnd="@drawable/icon_arrow_down3"
|
|
|
+ android:drawablePadding="4dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="center"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:textColor="@color/color_131415"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ tools:text="竖笛" />
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_search_bg"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="34dp"
|
|
|
+ android:layout_marginTop="17dp"
|
|
|
+ android:layout_marginEnd="13dp"
|
|
|
+ android:background="@drawable/shape_main_music_search_bg"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/fl_subject"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_name" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_search"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:src="@drawable/jg_icon_search"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_search_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_search_bg" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="6dp"
|
|
|
+ android:text="请输入专辑关键词"
|
|
|
+ android:textColor="@color/color_66000000"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_search"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_search"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_search" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_marginEnd="3dp"
|
|
|
+ android:background="@drawable/shape_ff76a6_to_ff3c81_14dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:text="搜索"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_search"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_search_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_search" />
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_top_line"
|
|
|
+ android:layout_width="1px"
|
|
|
+ android:layout_height="1px"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_search_bg" />
|
|
|
+
|
|
|
+ <com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
|
+ android:id="@+id/refreshLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_top_line"
|
|
|
+ app:srlEnableLoadMore="false">
|
|
|
+
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_banner"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:clipChildren="false"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <com.youth.banner.Banner
|
|
|
+ android:id="@+id/banner"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/dp_156"
|
|
|
+ android:layout_marginLeft="@dimen/dp_25"
|
|
|
+ android:layout_marginRight="@dimen/dp_25"
|
|
|
+ android:descendantFocusability="blocksDescendants"
|
|
|
+ app:banner_indicator_gravity="right"
|
|
|
+ app:banner_indicator_height="5dp"
|
|
|
+ app:banner_indicator_marginBottom="8dp"
|
|
|
+ app:banner_indicator_marginRight="12dp"
|
|
|
+ app:banner_indicator_normal_color="@color/white"
|
|
|
+ app:banner_indicator_normal_width="5dp"
|
|
|
+ app:banner_indicator_selected_color="@color/white"
|
|
|
+ app:banner_indicator_selected_width="12dp"
|
|
|
+ app:banner_radius="10dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_hot_album"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/dp_10"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/fl_banner">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_hot_album_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="13dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:src="@drawable/jg_hot_ablum_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableEnd="@drawable/icon_arrow_right"
|
|
|
+ android:drawablePadding="6dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:padding="13dp"
|
|
|
+ android:text="更多"
|
|
|
+ android:textColor="@color/color_aaaaaa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_hot_album_title"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_hot_album_title" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_hot_album"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="17dp"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:paddingLeft="@dimen/dp_13"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_hot_album_title" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_recommend_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/dp_15"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cl_hot_album"
|
|
|
+ tools:visibility="visible">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_recommend_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="13dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:src="@drawable/jg_recommend_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableEnd="@drawable/icon_arrow_right"
|
|
|
+ android:drawablePadding="6dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:padding="13dp"
|
|
|
+ android:text="更多"
|
|
|
+ android:textColor="@color/color_aaaaaa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_recommend_title"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_recommend_title" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_recommend_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:paddingLeft="@dimen/dp_13"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_recommend_title" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_latest_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/dp_15"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cl_recommend_track"
|
|
|
+ tools:visibility="visible">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_latest_track_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="13dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:src="@drawable/jg_latest_track_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableEnd="@drawable/icon_arrow_right"
|
|
|
+ android:drawablePadding="6dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:padding="13dp"
|
|
|
+ android:text="更多"
|
|
|
+ android:textColor="@color/color_aaaaaa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_latest_track_title"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_latest_track_title" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_latest_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:paddingLeft="@dimen/dp_13"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_latest_track_title" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_hot_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/dp_15"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cl_latest_track"
|
|
|
+ tools:visibility="visible">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_hot_track_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="13dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:src="@drawable/jg_hot_track_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableEnd="@drawable/icon_arrow_right"
|
|
|
+ android:drawablePadding="6dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:padding="13dp"
|
|
|
+ android:text="更多"
|
|
|
+ android:textColor="@color/color_aaaaaa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_hot_track_title"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_hot_track_title" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_hot_track"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:paddingLeft="@dimen/dp_13"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_hot_track_title" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
+ </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|