Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
BottomSheet: Hide unused bottom entries
Browse files Browse the repository at this point in the history
Signed-off-by: Shinjo Akane <akane@akanework.org>
  • Loading branch information
AkaneTan committed Jul 31, 2023
1 parent 8393347 commit 8ac51de
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_featured_playlist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M240,520L600,520L600,440L240,440L240,520ZM240,400L600,400L600,320L240,320L240,400ZM160,800Q127,800 103.5,776.5Q80,753 80,720L80,240Q80,207 103.5,183.5Q127,160 160,160L800,160Q833,160 856.5,183.5Q880,207 880,240L880,720Q880,753 856.5,776.5Q833,800 800,800L160,800ZM160,720L800,720Q800,720 800,720Q800,720 800,720L800,240Q800,240 800,240Q800,240 800,240L160,240Q160,240 160,240Q160,240 160,240L160,720Q160,720 160,720Q160,720 160,720ZM160,720Q160,720 160,720Q160,720 160,720L160,240Q160,240 160,240Q160,240 160,240L160,240Q160,240 160,240Q160,240 160,240L160,720Q160,720 160,720Q160,720 160,720L160,720Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_playlist_play.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M120,640L120,560L440,560L440,640L120,640ZM120,480L120,400L600,400L600,480L120,480ZM120,320L120,240L600,240L600,320L120,320ZM640,840L640,520L880,680L640,840Z"/>
</vector>
11 changes: 8 additions & 3 deletions app/src/main/res/layout/global_bottom_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:layout_gravity="bottom"
android:fitsSystemWindows="true">

Expand All @@ -28,15 +29,17 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:behavior_peekHeight="@dimen/bottom_sheet_height"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
tools:behavior_peekHeight="1000dp">

<LinearLayout
android:id="@+id/full_size_sheet_player"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="32dp"
android:orientation="vertical"
android:visibility="gone">
android:visibility="gone"
tools:visibility="visible">

<LinearLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -395,6 +398,7 @@
android:insetRight="0dp"
android:insetBottom="0dp"
android:saveEnabled="false"
android:visibility="gone"
app:icon="@drawable/ic_favourite_border"
app:iconGravity="textStart"
app:iconPadding="0dp"
Expand All @@ -414,6 +418,7 @@
android:insetRight="0dp"
android:insetBottom="0dp"
android:saveEnabled="false"
android:visibility="gone"
app:icon="@drawable/ic_playlist_add"
app:iconGravity="textStart"
app:iconPadding="0dp"
Expand All @@ -430,7 +435,7 @@
android:insetTop="0dp"
android:insetRight="0dp"
android:insetBottom="0dp"
app:icon="@drawable/ic_queue_music"
app:icon="@drawable/ic_playlist_play"
app:iconGravity="textStart"
app:iconPadding="0dp"
app:iconSize="24dp"
Expand Down

0 comments on commit 8ac51de

Please sign in to comment.