diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt index 203b9ca6d..87a2391c8 100644 --- a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt +++ b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt @@ -200,7 +200,18 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(), TOGGLE_ADD_CONTROLS -> { miniPlayerFragment?.setUpButtons() } - NOW_PLAYING_SCREEN_ID, ALBUM_COVER_TRANSFORM, CAROUSEL_EFFECT, + NOW_PLAYING_SCREEN_ID -> { + binding.slidingPanel.updateLayoutParams { + height = if (nowPlayingScreen != Peek) { + ViewGroup.LayoutParams.MATCH_PARENT + } else { + ViewGroup.LayoutParams.WRAP_CONTENT + } + chooseFragmentForTheme() + onServiceConnected() + } + } + ALBUM_COVER_TRANSFORM, CAROUSEL_EFFECT, ALBUM_COVER_STYLE, TOGGLE_VOLUME, EXTRA_SONG_INFO, CIRCLE_PLAY_BUTTON, -> { chooseFragmentForTheme() @@ -458,7 +469,8 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(), } else { bottomSheetBehavior.peekHeight = heightOfBarWithTabs } - libraryViewModel.setFabMargin(this, dip(R.dimen.mini_player_height_expanded)) + libraryViewModel.setFabMargin(this, + dip(R.dimen.mini_player_height_expanded)) } else { logD("Details") if (animate) { diff --git a/app/src/main/res/layout-land/activity_album_tag_editor.xml b/app/src/main/res/layout-land/activity_album_tag_editor.xml index 8db003e24..3e7f89a8c 100644 --- a/app/src/main/res/layout-land/activity_album_tag_editor.xml +++ b/app/src/main/res/layout-land/activity_album_tag_editor.xml @@ -14,6 +14,11 @@ diff --git a/app/src/main/res/layout-land/activity_song_tag_editor.xml b/app/src/main/res/layout-land/activity_song_tag_editor.xml index 482f18305..8cc5618bd 100644 --- a/app/src/main/res/layout-land/activity_song_tag_editor.xml +++ b/app/src/main/res/layout-land/activity_song_tag_editor.xml @@ -1,8 +1,8 @@ @@ -16,6 +16,8 @@ diff --git a/app/src/main/res/layout-land/fragment_album_details.xml b/app/src/main/res/layout-land/fragment_album_details.xml index b53a9137e..bc8d67593 100644 --- a/app/src/main/res/layout-land/fragment_album_details.xml +++ b/app/src/main/res/layout-land/fragment_album_details.xml @@ -6,9 +6,9 @@ android:layout_height="match_parent" android:fitsSystemWindows="true" android:orientation="vertical" + android:transitionGroup="true" android:transitionName="@string/transition_album_art" - tools:ignore="UnusedAttribute" - android:transitionGroup="true"> + tools:ignore="UnusedAttribute"> diff --git a/app/src/main/res/layout-land/fragment_artist_details.xml b/app/src/main/res/layout-land/fragment_artist_details.xml index 4bd023275..d59a83fcb 100644 --- a/app/src/main/res/layout-land/fragment_artist_details.xml +++ b/app/src/main/res/layout-land/fragment_artist_details.xml @@ -19,10 +19,11 @@ - - - - - - - + android:layout_height="48dp" + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> diff --git a/app/src/main/res/layout-land/fragment_card_blur_player.xml b/app/src/main/res/layout-land/fragment_card_blur_player.xml index dddb02628..d3d152cc6 100644 --- a/app/src/main/res/layout-land/fragment_card_blur_player.xml +++ b/app/src/main/res/layout-land/fragment_card_blur_player.xml @@ -35,24 +35,20 @@ - - - - + android:layout_weight="0" + app:contentInsetLeft="0dp" + app:contentInsetStart="0dp" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" + app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Caption" + app:titleMargin="0dp" + app:titleMarginStart="0dp" + app:titleTextAppearance="@style/TextAppearance.AppCompat.Subhead" /> - - - - + android:layout_marginEnd="96dp" + tools:layout="@layout/fragment_card_blur_player_playback_controls" /> \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_card_player.xml b/app/src/main/res/layout-land/fragment_card_player.xml index cb20a148a..bfecea0dd 100644 --- a/app/src/main/res/layout-land/fragment_card_player.xml +++ b/app/src/main/res/layout-land/fragment_card_player.xml @@ -38,6 +38,8 @@ diff --git a/app/src/main/res/layout-land/fragment_circle_player.xml b/app/src/main/res/layout-land/fragment_circle_player.xml index ef1ceb2b9..71f388878 100644 --- a/app/src/main/res/layout-land/fragment_circle_player.xml +++ b/app/src/main/res/layout-land/fragment_circle_player.xml @@ -47,7 +47,8 @@ + android:background="?colorSurface"> - - - - - + - + + - - - - - - - - + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> diff --git a/app/src/main/res/layout-land/fragment_flat_player.xml b/app/src/main/res/layout-land/fragment_flat_player.xml index 37ca72b13..65ab0a0bc 100644 --- a/app/src/main/res/layout-land/fragment_flat_player.xml +++ b/app/src/main/res/layout-land/fragment_flat_player.xml @@ -4,15 +4,11 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSurface" android:clickable="true" android:focusable="true" android:orientation="vertical"> - - - - - - - + - - - - - + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> diff --git a/app/src/main/res/layout-land/fragment_md3_player.xml b/app/src/main/res/layout-land/fragment_md3_player.xml index f67be7aaa..9be0da583 100644 --- a/app/src/main/res/layout-land/fragment_md3_player.xml +++ b/app/src/main/res/layout-land/fragment_md3_player.xml @@ -4,20 +4,10 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSurface" android:clickable="true" android:focusable="true"> - - - - - - - - - + - - - - + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> - - - - - - - + - + android:layout_weight="1" + tools:layout="@layout/fragment_plain_controls_fragment" /> - - - - - - - + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> diff --git a/app/src/main/res/layout-land/fragment_player.xml b/app/src/main/res/layout-land/fragment_player.xml index 7b3931a8d..a678dcb69 100755 --- a/app/src/main/res/layout-land/fragment_player.xml +++ b/app/src/main/res/layout-land/fragment_player.xml @@ -4,9 +4,9 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSurface" android:clickable="true" - android:focusable="true" - android:background="?attr/colorSurface"> + android:focusable="true"> diff --git a/app/src/main/res/layout-land/fragment_simple_player.xml b/app/src/main/res/layout-land/fragment_simple_player.xml index b38a90b55..3d738f551 100644 --- a/app/src/main/res/layout-land/fragment_simple_player.xml +++ b/app/src/main/res/layout-land/fragment_simple_player.xml @@ -4,22 +4,11 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSurface" android:clickable="true" android:focusable="true" android:orientation="vertical"> - - - - - - - - - + - - - - + android:layout_weight="0" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> diff --git a/app/src/main/res/layout-land/fragment_user_info.xml b/app/src/main/res/layout-land/fragment_user_info.xml index 05d9a3ef8..6cfe84bd5 100644 --- a/app/src/main/res/layout-land/fragment_user_info.xml +++ b/app/src/main/res/layout-land/fragment_user_info.xml @@ -16,6 +16,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_album_tag_editor.xml b/app/src/main/res/layout/activity_album_tag_editor.xml index ee7a664c8..43184934c 100755 --- a/app/src/main/res/layout/activity_album_tag_editor.xml +++ b/app/src/main/res/layout/activity_album_tag_editor.xml @@ -17,6 +17,8 @@ @@ -26,8 +28,8 @@ android:id="@+id/content" android:layout_width="match_parent" android:layout_height="wrap_content" - app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" - android:overScrollMode="@integer/overScrollMode"> + android:overScrollMode="@integer/overScrollMode" + app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> diff --git a/app/src/main/res/layout/collapsing_appbar_layout.xml b/app/src/main/res/layout/collapsing_appbar_layout.xml index 82a06383c..e836228a6 100644 --- a/app/src/main/res/layout/collapsing_appbar_layout.xml +++ b/app/src/main/res/layout/collapsing_appbar_layout.xml @@ -16,6 +16,7 @@ + android:layout_height="wrap_content" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_adaptive_player.xml b/app/src/main/res/layout/fragment_adaptive_player.xml index 5dd0db60d..3e0c27f1b 100644 --- a/app/src/main/res/layout/fragment_adaptive_player.xml +++ b/app/src/main/res/layout/fragment_adaptive_player.xml @@ -3,12 +3,8 @@ 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"> - - + android:layout_height="match_parent" + android:background="?colorSurface"> @@ -24,27 +20,23 @@ - - - - - + app:contentInsetStart="0dp" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" + app:subtitleTextAppearance="@style/TextViewCaption" + app:titleMargin="0dp" + app:titleMarginStart="0dp" + app:titleTextAppearance="@style/TextViewSubtitle1" + tools:subtitle="@tools:sample/full_names" + tools:title="@tools:sample/full_names" /> - - - - + android:layout_weight="0" + tools:layout="@layout/fragment_adaptive_player_playback_controls" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_album_details.xml b/app/src/main/res/layout/fragment_album_details.xml index 91713d0e7..57aff3242 100644 --- a/app/src/main/res/layout/fragment_album_details.xml +++ b/app/src/main/res/layout/fragment_album_details.xml @@ -11,8 +11,8 @@ android:id="@+id/appBarLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - app:liftOnScroll="true" - android:fitsSystemWindows="true"> + android:fitsSystemWindows="true" + app:liftOnScroll="true"> diff --git a/app/src/main/res/layout/fragment_artist_details.xml b/app/src/main/res/layout/fragment_artist_details.xml index 4fe2ee7f2..b1642849e 100644 --- a/app/src/main/res/layout/fragment_artist_details.xml +++ b/app/src/main/res/layout/fragment_artist_details.xml @@ -11,8 +11,8 @@ android:id="@+id/appBarLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - app:liftOnScroll="true" - android:fitsSystemWindows="true"> + android:fitsSystemWindows="true" + app:liftOnScroll="true"> @@ -102,7 +104,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/text" /> - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_blur.xml b/app/src/main/res/layout/fragment_blur.xml index 0baa6e7e6..bf0d569ad 100644 --- a/app/src/main/res/layout/fragment_blur.xml +++ b/app/src/main/res/layout/fragment_blur.xml @@ -65,8 +65,9 @@ - + - - - - - - - + android:layout_weight="0" + app:contentInsetLeft="0dp" + app:contentInsetStart="0dp" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" + app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Caption" + app:titleMargin="0dp" + app:titleMarginStart="0dp" + app:titleTextAppearance="@style/TextAppearance.AppCompat.Subhead" /> - - - - + android:layout_gravity="bottom" + tools:layout="@layout/fragment_card_blur_player_playback_controls" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_card_player.xml b/app/src/main/res/layout/fragment_card_player.xml index 294ee5b1c..394284b81 100644 --- a/app/src/main/res/layout/fragment_card_player.xml +++ b/app/src/main/res/layout/fragment_card_player.xml @@ -26,6 +26,7 @@ android:layout_height="match_parent" android:layout_gravity="center" android:elevation="20dp" /> + diff --git a/app/src/main/res/layout/fragment_circle_player.xml b/app/src/main/res/layout/fragment_circle_player.xml index 702b26ca3..520700261 100644 --- a/app/src/main/res/layout/fragment_circle_player.xml +++ b/app/src/main/res/layout/fragment_circle_player.xml @@ -22,24 +22,17 @@ android:focusable="true" android:orientation="vertical"> - - - - + @@ -121,12 +114,13 @@ android:id="@+id/playPauseButton" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:src="@drawable/ic_pause" app:backgroundTint="?attr/colorSurface" + android:scaleType="centerCrop" app:layout_constraintBottom_toBottomOf="@id/volumeSeekBar" app:layout_constraintEnd_toEndOf="@id/volumeSeekBar" app:layout_constraintStart_toStartOf="@id/volumeSeekBar" app:layout_constraintTop_toTopOf="@id/volumeSeekBar" - android:src="@drawable/ic_pause" tools:tint="@color/md_black_1000" /> - - - - - - - - + app:layout_constraintTop_toTopOf="parent" + tools:layout="@layout/fragment_album_cover" /> + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> - + app:layout_constraintTop_toBottomOf="@id/playerAlbumCoverFragment" /> - - - - - + + app:layout_constraintTop_toBottomOf="@id/status_bar" /> - - - - - + android:layout_weight="0" + tools:layout="@layout/fragment_gradient_controls" /> - - - - - - - - - diff --git a/app/src/main/res/layout/fragment_flat_player.xml b/app/src/main/res/layout/fragment_flat_player.xml index e7c9a4601..1812a18ce 100644 --- a/app/src/main/res/layout/fragment_flat_player.xml +++ b/app/src/main/res/layout/fragment_flat_player.xml @@ -18,20 +18,9 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - + - - - - + - + + - - - - - - + app:layout_constraintTop_toTopOf="@id/status_bar" /> diff --git a/app/src/main/res/layout/fragment_gradient_player.xml b/app/src/main/res/layout/fragment_gradient_player.xml index d68ac7675..e4d569733 100644 --- a/app/src/main/res/layout/fragment_gradient_player.xml +++ b/app/src/main/res/layout/fragment_gradient_player.xml @@ -14,6 +14,8 @@ android:layout_height="match_parent" android:paddingBottom="48dp"> + + - - - - - + app:layout_constraintTop_toBottomOf="@+id/status_bar" /> diff --git a/app/src/main/res/layout/fragment_home_player.xml b/app/src/main/res/layout/fragment_home_player.xml index 653b005ee..00c940a9a 100644 --- a/app/src/main/res/layout/fragment_home_player.xml +++ b/app/src/main/res/layout/fragment_home_player.xml @@ -15,7 +15,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_lyrics.xml b/app/src/main/res/layout/fragment_lyrics.xml index bb118a02c..00645d23c 100644 --- a/app/src/main/res/layout/fragment_lyrics.xml +++ b/app/src/main/res/layout/fragment_lyrics.xml @@ -28,8 +28,7 @@ android:layout_height="match_parent" android:background="?attr/colorSurface" android:gravity="start" - android:navigationIcon="@drawable/ic_keyboard_arrow_down_black" - app:contentInsetLeft="0dp" + app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black" diff --git a/app/src/main/res/layout/fragment_material.xml b/app/src/main/res/layout/fragment_material.xml index a2df79d3a..7222c0cc6 100644 --- a/app/src/main/res/layout/fragment_material.xml +++ b/app/src/main/res/layout/fragment_material.xml @@ -19,17 +19,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - - - - - + + app:layout_constraintTop_toBottomOf="@id/status_bar" /> - - - - + - - + + app:layout_constraintTop_toBottomOf="@id/status_bar" /> - - - - - + app:layout_constraintTop_toTopOf="parent" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> + app:layout_constraintTop_toBottomOf="@id/playerToolbar" /> - - - - + + app:layout_constraintTop_toBottomOf="@id/status_bar"> + app:layout_constraintTop_toBottomOf="@id/playbackControlsFragment" + app:title="@null" + tools:menu="@menu/menu_player" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 6a93de59d..6654599ab 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -38,6 +38,7 @@ - - - - - - - + + app:layout_constraintTop_toBottomOf="@id/status_bar" /> - - - - - + - + app:layout_constraintStart_toStartOf="parent" + app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" /> - - - - - - - - + app:layout_constraintBottom_toTopOf="@id/playerToolbar" + app:layout_constraintEnd_toEndOf="parent" + tools:layout="@layout/fragment_tiny_controls_fragment" />