[Now Playing] Moved toolbar of Flat theme to bottom
This commit is contained in:
parent
4b857f6088
commit
6dc152b911
2 changed files with 16 additions and 16 deletions
|
@ -91,7 +91,7 @@ class FlatPlayerFragment : AbsPlayerFragment(R.layout.fragment_flat_player) {
|
||||||
_binding = FragmentFlatPlayerBinding.bind(view)
|
_binding = FragmentFlatPlayerBinding.bind(view)
|
||||||
setUpPlayerToolbar()
|
setUpPlayerToolbar()
|
||||||
setUpSubFragments()
|
setUpSubFragments()
|
||||||
binding.playbackControlsFragment.drawAboveSystemBars()
|
binding.playerToolbar.drawAboveSystemBars()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onShow() {
|
override fun onShow() {
|
||||||
|
|
|
@ -18,8 +18,9 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<include layout="@layout/shadow_statusbar_toolbar" />
|
<include
|
||||||
|
android:id="@+id/include"
|
||||||
|
layout="@layout/shadow_statusbar_toolbar" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/statusBarContainer"
|
android:id="@+id/statusBarContainer"
|
||||||
|
@ -32,17 +33,6 @@
|
||||||
<include layout="@layout/status_bar" />
|
<include layout="@layout/status_bar" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.MaterialToolbar
|
|
||||||
android:id="@+id/playerToolbar"
|
|
||||||
style="@style/Toolbar"
|
|
||||||
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/statusBarContainer"
|
|
||||||
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" />
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.fragment.app.FragmentContainerView
|
<androidx.fragment.app.FragmentContainerView
|
||||||
android:id="@+id/playerAlbumCoverFragment"
|
android:id="@+id/playerAlbumCoverFragment"
|
||||||
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
|
android:name="code.name.monkey.retromusic.fragments.player.PlayerAlbumCoverFragment"
|
||||||
|
@ -51,7 +41,7 @@
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHeight_percent="0.5"
|
app:layout_constraintHeight_percent="0.5"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/playerToolbar"
|
app:layout_constraintTop_toBottomOf="@+id/statusBarContainer"
|
||||||
tools:layout="@layout/fragment_album_flat_cover" />
|
tools:layout="@layout/fragment_album_flat_cover" />
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,10 +50,20 @@
|
||||||
android:name="code.name.monkey.retromusic.fragments.player.flat.FlatPlaybackControlsFragment"
|
android:name="code.name.monkey.retromusic.fragments.player.flat.FlatPlaybackControlsFragment"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toTopOf="@+id/playerToolbar"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/playerAlbumCoverFragment"
|
app:layout_constraintTop_toBottomOf="@id/playerAlbumCoverFragment"
|
||||||
tools:layout="@layout/fragment_flat_player_playback_controls" />
|
tools:layout="@layout/fragment_flat_player_playback_controls" />
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
|
android:id="@+id/playerToolbar"
|
||||||
|
style="@style/Toolbar"
|
||||||
|
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:navigationIcon="@drawable/ic_keyboard_arrow_down_black" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Add table
Add a link
Reference in a new issue