2018-07-27 18:37:33 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-07-27 18:37:33 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/app_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/collapsing_toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/gradient_background"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="@drawable/shadow_up_home"
|
|
|
|
android:backgroundTint="?colorPrimary" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_collapseMode="pin">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<include layout="@layout/status_bar" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/menu_close"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="@drawable/color_circle_gradient"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:backgroundTint="@color/twenty_percent_black_overlay"
|
|
|
|
app:srcCompat="@drawable/ic_close_white_24dp" />
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/menu"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="@drawable/color_circle_gradient"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:backgroundTint="@color/twenty_percent_black_overlay"
|
|
|
|
app:srcCompat="@drawable/ic_more_vert_white_24dp" />
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-11-05 19:23:07 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/image_container"
|
|
|
|
android:layout_width="260dp"
|
|
|
|
android:layout_height="260dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
app:cardElevation="8dp"
|
|
|
|
app:cardUseCompatPadding="true">
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:transitionName="@string/transition_album_art"
|
2018-09-23 15:34:43 +05:30
|
|
|
/>
|
2018-11-05 19:23:07 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2018-07-27 18:37:33 +05:30
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/title"
|
|
|
|
fontPath="@string/circular_std_black"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:freezesText="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:text="Title" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="@drawable/shadow_down_strong" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2018-08-30 14:59:30 +05:30
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2018-07-27 18:37:33 +05:30
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:overScrollMode="never"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
2018-11-05 19:23:07 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
app:cardElevation="8dp"
|
|
|
|
app:cardUseCompatPadding="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<!-- <LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
fontPath="@string/sans_bold"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:freezesText="true"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:text="Title" />
|
|
|
|
|
|
|
|
</LinearLayout>-->
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/song_title"
|
|
|
|
fontPath="@string/circular_std_black"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:text="@string/songs"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/recycler_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
</LinearLayout>
|
2018-11-05 19:23:07 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2018-08-30 14:59:30 +05:30
|
|
|
</androidx.core.widget.NestedScrollView>
|
2018-07-27 18:37:33 +05:30
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-07-27 18:37:33 +05:30
|
|
|
android:id="@+id/action_shuffle_all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
app:srcCompat="@drawable/ic_shuffle_white_24dp" />
|
|
|
|
|
2018-08-30 14:59:30 +05:30
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|