detail: implement dual-pane layout
This commit is contained in:
@@ -158,7 +158,6 @@ class AlbumDetailFragment : DetailFragment<Album, Song>() {
|
|||||||
}
|
}
|
||||||
binding.detailShuffleButton?.setOnClickListener {
|
binding.detailShuffleButton?.setOnClickListener {
|
||||||
playbackModel.shuffle(album)
|
playbackModel.shuffle(album)
|
||||||
playbackModel.shuffle(album)
|
|
||||||
}
|
}
|
||||||
setToolbarPlaybackButtonsEnabled(true)
|
setToolbarPlaybackButtonsEnabled(true)
|
||||||
updatePlayback(
|
updatePlayback(
|
||||||
@@ -316,7 +315,7 @@ class AlbumDetailFragment : DetailFragment<Album, Song>() {
|
|||||||
val binding = requireBinding()
|
val binding = requireBinding()
|
||||||
// RecyclerView will scroll assuming it has the total height of the screen (i.e a
|
// RecyclerView will scroll assuming it has the total height of the screen (i.e a
|
||||||
// collapsed appbar), so we need to collapse the appbar if that's the case.
|
// collapsed appbar), so we need to collapse the appbar if that's the case.
|
||||||
binding.detailAppbar.setExpanded(false)
|
binding.detailAppbar?.setExpanded(false)
|
||||||
if (!binding.detailRecycler.canScroll()) {
|
if (!binding.detailRecycler.canScroll()) {
|
||||||
// Don't scroll if the RecyclerView goes off screen. If we go anyway, overscroll
|
// Don't scroll if the RecyclerView goes off screen. If we go anyway, overscroll
|
||||||
// kicks in and creates a weird bounce effect.
|
// kicks in and creates a weird bounce effect.
|
||||||
|
|||||||
@@ -22,11 +22,14 @@ import android.os.Bundle
|
|||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
import android.view.WindowInsets
|
||||||
|
import androidx.core.view.updatePadding
|
||||||
import androidx.fragment.app.activityViewModels
|
import androidx.fragment.app.activityViewModels
|
||||||
import androidx.navigation.findNavController
|
import androidx.navigation.findNavController
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import com.google.android.material.appbar.AppBarLayout
|
import com.google.android.material.appbar.AppBarLayout
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
|
import org.oxycblt.auxio.BuildConfig
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
@@ -41,6 +44,8 @@ import org.oxycblt.auxio.music.MusicViewModel
|
|||||||
import org.oxycblt.auxio.playback.PlaybackViewModel
|
import org.oxycblt.auxio.playback.PlaybackViewModel
|
||||||
import org.oxycblt.auxio.util.getDimenPixels
|
import org.oxycblt.auxio.util.getDimenPixels
|
||||||
import org.oxycblt.auxio.util.setFullWidthLookup
|
import org.oxycblt.auxio.util.setFullWidthLookup
|
||||||
|
import org.oxycblt.auxio.util.systemBarInsetsCompat
|
||||||
|
import org.oxycblt.auxio.util.systemCutoutInsetsCompat
|
||||||
import org.oxycblt.musikr.Music
|
import org.oxycblt.musikr.Music
|
||||||
import org.oxycblt.musikr.MusicParent
|
import org.oxycblt.musikr.MusicParent
|
||||||
|
|
||||||
@@ -78,7 +83,34 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
super.onBindingCreated(binding, savedInstanceState)
|
super.onBindingCreated(binding, savedInstanceState)
|
||||||
|
|
||||||
// --- UI SETUP ---
|
// --- UI SETUP ---
|
||||||
binding.detailAppbar.addOnOffsetChangedListener(this)
|
binding.detailAppbar?.addOnOffsetChangedListener(this)
|
||||||
|
|
||||||
|
val pane = binding.detailPane
|
||||||
|
if (pane != null) {
|
||||||
|
// 2-pane layout, re-adjust toolbar and pane to insets but not recycler,
|
||||||
|
// it applies its own insets
|
||||||
|
binding.detailToolbar.setOnApplyWindowInsetsListener { view, insets ->
|
||||||
|
view.updatePadding(top = insets.systemBarInsetsCompat.top)
|
||||||
|
insets
|
||||||
|
}
|
||||||
|
// prevents duplicate titles
|
||||||
|
// not needed for buttons since they are not in the dual-pane layout
|
||||||
|
binding.detailNormalToolbar.titleContainer.alpha = 0f
|
||||||
|
pane.setOnApplyWindowInsetsListener { view, insets ->
|
||||||
|
// todo: rtl awareness
|
||||||
|
view.updatePadding(bottom = insets.systemBarInsetsCompat.bottom)
|
||||||
|
insets
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val appbar = binding.detailAppbar
|
||||||
|
if (appbar != null && savedInstanceState != null) {
|
||||||
|
// single-pane, we need to make sure restore the lost collapsing toolbar state
|
||||||
|
val panes = savedInstanceState.getBoolean(KEY_DUAL_PANE)
|
||||||
|
val scrolled = savedInstanceState.getBoolean(KEY_SCROLLED)
|
||||||
|
if (panes && scrolled) {
|
||||||
|
appbar.setExpanded(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
binding.detailNormalToolbar.apply {
|
binding.detailNormalToolbar.apply {
|
||||||
setNavigationOnClickListener { findNavController().navigateUp() }
|
setNavigationOnClickListener { findNavController().navigateUp() }
|
||||||
@@ -88,17 +120,6 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
|
|
||||||
binding.detailRecycler.apply {
|
binding.detailRecycler.apply {
|
||||||
adapter = getDetailListAdapter()
|
adapter = getDetailListAdapter()
|
||||||
(layoutManager as GridLayoutManager).setFullWidthLookup {
|
|
||||||
if (it != 0) {
|
|
||||||
val item =
|
|
||||||
detailModel.artistSongList.value.getOrElse(it - 1) {
|
|
||||||
return@setFullWidthLookup false
|
|
||||||
}
|
|
||||||
item is PlainDivider || item is PlainHeader
|
|
||||||
} else {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spacingSmall = requireContext().getDimenPixels(R.dimen.spacing_small)
|
spacingSmall = requireContext().getDimenPixels(R.dimen.spacing_small)
|
||||||
@@ -106,11 +127,18 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
|
|
||||||
override fun onDestroyBinding(binding: FragmentDetailBinding) {
|
override fun onDestroyBinding(binding: FragmentDetailBinding) {
|
||||||
super.onDestroyBinding(binding)
|
super.onDestroyBinding(binding)
|
||||||
binding.detailAppbar.removeOnOffsetChangedListener(this)
|
binding.detailAppbar?.removeOnOffsetChangedListener(this)
|
||||||
binding.detailNormalToolbar.setOnMenuItemClickListener(null)
|
binding.detailNormalToolbar.setOnMenuItemClickListener(null)
|
||||||
binding.detailRecycler.adapter = null
|
binding.detailRecycler.adapter = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSaveInstanceState(outState: Bundle) {
|
||||||
|
super.onSaveInstanceState(outState)
|
||||||
|
val binding = requireBinding()
|
||||||
|
outState.putBoolean(KEY_DUAL_PANE, binding.detailPane != null)
|
||||||
|
outState.putBoolean(KEY_SCROLLED, binding.detailRecycler.computeVerticalScrollOffset() > 0f)
|
||||||
|
}
|
||||||
|
|
||||||
override fun onOffsetChanged(appBarLayout: AppBarLayout, verticalOffset: Int) {
|
override fun onOffsetChanged(appBarLayout: AppBarLayout, verticalOffset: Int) {
|
||||||
val binding = requireBinding()
|
val binding = requireBinding()
|
||||||
val range = appBarLayout.totalScrollRange
|
val range = appBarLayout.totalScrollRange
|
||||||
@@ -118,9 +146,11 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
|
|
||||||
val outRatio = min(ratio * 2, 1f)
|
val outRatio = min(ratio * 2, 1f)
|
||||||
val detailHeader = binding.detailHeader
|
val detailHeader = binding.detailHeader
|
||||||
detailHeader.scaleX = 1 - 0.2f * outRatio / (5f / 3f)
|
if (detailHeader != null) {
|
||||||
detailHeader.scaleY = 1 - 0.2f * outRatio / (5f / 3f)
|
detailHeader.scaleX = 1 - 0.2f * outRatio / (5f / 3f)
|
||||||
detailHeader.alpha = 1 - outRatio
|
detailHeader.scaleY = 1 - 0.2f * outRatio / (5f / 3f)
|
||||||
|
detailHeader.alpha = 1 - outRatio
|
||||||
|
}
|
||||||
|
|
||||||
val inRatio = max(ratio - 0.5f, 0f) * 2
|
val inRatio = max(ratio - 0.5f, 0f) * 2
|
||||||
animateToolbarView(binding.detailNormalToolbar.titleContainer, inRatio)
|
animateToolbarView(binding.detailNormalToolbar.titleContainer, inRatio)
|
||||||
@@ -167,8 +197,11 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun animateToolbarView(view: View?, ratio: Float) {
|
private fun animateToolbarView(view: View?, ratio: Float) {
|
||||||
view?.alpha = ratio
|
if (view == null) {
|
||||||
view?.translationY = spacingSmall * (1 - ratio)
|
return
|
||||||
|
}
|
||||||
|
view.alpha = ratio
|
||||||
|
view.translationY = spacingSmall * (1 - ratio)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun animateToolbarActionButton(view: View?, ratio: Float) {
|
private fun animateToolbarActionButton(view: View?, ratio: Float) {
|
||||||
@@ -195,4 +228,9 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
|
|||||||
protected abstract fun onShuffleParent(parent: P)
|
protected abstract fun onShuffleParent(parent: P)
|
||||||
|
|
||||||
abstract fun onOpenParentMenu()
|
abstract fun onOpenParentMenu()
|
||||||
|
|
||||||
|
private companion object {
|
||||||
|
const val KEY_DUAL_PANE = BuildConfig.APPLICATION_ID + ".detail.DUAL_PANE"
|
||||||
|
const val KEY_SCROLLED = BuildConfig.APPLICATION_ID + ".detail.SCROLLED"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
package org.oxycblt.auxio.detail.decision
|
package org.oxycblt.auxio.detail.decision
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import org.oxycblt.auxio.databinding.ItemPickerChoiceBinding
|
import org.oxycblt.auxio.databinding.ItemPickerChoiceBinding
|
||||||
import org.oxycblt.auxio.list.ClickableListListener
|
import org.oxycblt.auxio.list.ClickableListListener
|
||||||
@@ -77,9 +76,9 @@ private constructor(private val binding: ItemPickerChoiceBinding) :
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
ArtistNavigationChoiceViewHolder(
|
ArtistNavigationChoiceViewHolder(
|
||||||
ItemPickerChoiceBinding.inflate(parent.context.inflater)
|
ItemPickerChoiceBinding.inflate(parent.context.inflater, parent, false)
|
||||||
)
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
package org.oxycblt.auxio.detail.list
|
package org.oxycblt.auxio.detail.list
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.core.view.isGone
|
import androidx.core.view.isGone
|
||||||
import androidx.core.view.isInvisible
|
import androidx.core.view.isInvisible
|
||||||
@@ -29,6 +28,9 @@ import org.oxycblt.auxio.IntegerTable
|
|||||||
import org.oxycblt.auxio.R
|
import org.oxycblt.auxio.R
|
||||||
import org.oxycblt.auxio.databinding.ItemAlbumSongBinding
|
import org.oxycblt.auxio.databinding.ItemAlbumSongBinding
|
||||||
import org.oxycblt.auxio.databinding.ItemDiscHeaderBinding
|
import org.oxycblt.auxio.databinding.ItemDiscHeaderBinding
|
||||||
|
import org.oxycblt.auxio.detail.list.AlbumSongViewHolder.Companion.from
|
||||||
|
import org.oxycblt.auxio.detail.list.DiscDividerViewHolder.Companion.from
|
||||||
|
import org.oxycblt.auxio.detail.list.DiscHeaderViewHolder.Companion.from
|
||||||
import org.oxycblt.auxio.list.Divider
|
import org.oxycblt.auxio.list.Divider
|
||||||
import org.oxycblt.auxio.list.Header
|
import org.oxycblt.auxio.list.Header
|
||||||
import org.oxycblt.auxio.list.Item
|
import org.oxycblt.auxio.list.Item
|
||||||
@@ -140,8 +142,11 @@ private class DiscHeaderViewHolder(private val binding: ItemDiscHeaderBinding) :
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
DiscHeaderViewHolder(ItemDiscHeaderBinding.inflate(parent.context.inflater))
|
DiscHeaderViewHolder(
|
||||||
|
// TODO: Get all viewholders to inflate anchored to parent
|
||||||
|
ItemDiscHeaderBinding.inflate(parent.context.inflater, parent, false)
|
||||||
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
@@ -177,7 +182,7 @@ class DiscDividerViewHolder private constructor(divider: MaterialDivider) :
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) = DiscDividerViewHolder(MaterialDivider(parent.context))
|
fun from(parent: ViewGroup) = DiscDividerViewHolder(MaterialDivider(parent.context))
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
@@ -263,8 +268,10 @@ private class AlbumSongViewHolder private constructor(private val binding: ItemA
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
AlbumSongViewHolder(ItemAlbumSongBinding.inflate(parent.context.inflater))
|
AlbumSongViewHolder(
|
||||||
|
ItemAlbumSongBinding.inflate(parent.context.inflater, parent, false)
|
||||||
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
package org.oxycblt.auxio.detail.list
|
package org.oxycblt.auxio.detail.list
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import org.oxycblt.auxio.IntegerTable
|
import org.oxycblt.auxio.IntegerTable
|
||||||
@@ -127,8 +126,8 @@ private class ArtistAlbumViewHolder private constructor(private val binding: Ite
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
ArtistAlbumViewHolder(ItemParentBinding.inflate(parent.context.inflater))
|
ArtistAlbumViewHolder(ItemParentBinding.inflate(parent.context.inflater, parent, false))
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
@@ -179,8 +178,8 @@ private class ArtistSongViewHolder private constructor(private val binding: Item
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
ArtistSongViewHolder(ItemSongBinding.inflate(parent.context.inflater))
|
ArtistSongViewHolder(ItemSongBinding.inflate(parent.context.inflater, parent, false))
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
package org.oxycblt.auxio.detail.list
|
package org.oxycblt.auxio.detail.list
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import androidx.appcompat.widget.TooltipCompat
|
import androidx.appcompat.widget.TooltipCompat
|
||||||
@@ -146,8 +145,10 @@ private class SortHeaderViewHolder(private val binding: ItemSortHeaderBinding) :
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
SortHeaderViewHolder(ItemSortHeaderBinding.inflate(parent.context.inflater))
|
SortHeaderViewHolder(
|
||||||
|
ItemSortHeaderBinding.inflate(parent.context.inflater, parent, false)
|
||||||
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ package org.oxycblt.auxio.detail.list
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import android.graphics.drawable.LayerDrawable
|
import android.graphics.drawable.LayerDrawable
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import androidx.appcompat.widget.TooltipCompat
|
import androidx.appcompat.widget.TooltipCompat
|
||||||
@@ -203,8 +202,10 @@ private class EditHeaderViewHolder private constructor(private val binding: Item
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
EditHeaderViewHolder(ItemEditHeaderBinding.inflate(parent.context.inflater))
|
EditHeaderViewHolder(
|
||||||
|
ItemEditHeaderBinding.inflate(parent.context.inflater, parent, false)
|
||||||
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK =
|
val DIFF_CALLBACK =
|
||||||
@@ -292,8 +293,10 @@ private constructor(private val binding: ItemEditableSongBinding) :
|
|||||||
* @param parent The parent to inflate this instance from.
|
* @param parent The parent to inflate this instance from.
|
||||||
* @return A new instance.
|
* @return A new instance.
|
||||||
*/
|
*/
|
||||||
fun from(parent: View) =
|
fun from(parent: ViewGroup) =
|
||||||
PlaylistSongViewHolder(ItemEditableSongBinding.inflate(parent.context.inflater))
|
PlaylistSongViewHolder(
|
||||||
|
ItemEditableSongBinding.inflate(parent.context.inflater, parent, false)
|
||||||
|
)
|
||||||
|
|
||||||
/** A comparator that can be used with DiffUtil. */
|
/** A comparator that can be used with DiffUtil. */
|
||||||
val DIFF_CALLBACK = SongViewHolder.DIFF_CALLBACK
|
val DIFF_CALLBACK = SongViewHolder.DIFF_CALLBACK
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/wrapper_to_please_compiler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
android:id="@+id/detail_coordinator"
|
android:id="@+id/detail_coordinator"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
@@ -188,3 +193,4 @@
|
|||||||
tools:listitem="@layout/item_song" />
|
tools:listitem="@layout/item_song" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
</FrameLayout>
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/wrapper_to_please_compiler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
android:id="@+id/detail_coordinator"
|
android:id="@+id/detail_coordinator"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
@@ -174,3 +179,4 @@
|
|||||||
tools:listitem="@layout/item_song" />
|
tools:listitem="@layout/item_song" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
</FrameLayout>
|
||||||
@@ -1,188 +1,192 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/detail_coordinator"
|
android:id="@+id/wrapper_to_please_compiler"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:background="?attr/colorSurface"
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:transitionGroup="true">
|
android:id="@+id/detail_constraint"
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
|
||||||
android:id="@+id/detail_appbar"
|
|
||||||
style="@style/Widget.Auxio.AppBarLayout"
|
|
||||||
app:layout_behavior="org.oxycblt.auxio.detail.ContinuousAppBarLayoutBehavior"
|
|
||||||
app:liftOnScroll="true"
|
|
||||||
app:liftOnScrollTargetViewId="@id/detail_recycler">
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
||||||
android:id="@+id/detail_collapsing_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
||||||
app:titleEnabled="false"
|
|
||||||
app:toolbarId="@+id/detail_toolbar">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/detail_header"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
android:paddingStart="@dimen/spacing_medium"
|
|
||||||
android:paddingTop="86dp"
|
|
||||||
android:paddingEnd="@dimen/spacing_medium"
|
|
||||||
android:paddingBottom="@dimen/spacing_mid_medium"
|
|
||||||
app:layout_collapseMode="parallax"
|
|
||||||
app:layout_collapseParallaxMultiplier="0.85">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.image.CoverView
|
|
||||||
android:id="@+id/detail_cover"
|
|
||||||
style="@style/Widget.Auxio.Image.MidHuge"
|
|
||||||
app:enablePlaybackIndicator="false"
|
|
||||||
app:enableSelectionBadge="false"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintVertical_chainStyle="packed"
|
|
||||||
tools:ignore="ContentDescription" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_type"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
|
||||||
android:textColor="?attr/colorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintVertical_chainStyle="packed"
|
|
||||||
tools:text="Type" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_name"
|
|
||||||
style="@style/Widget.Auxio.TextView.Detail"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
|
||||||
tools:text="Name" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_subhead"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
|
||||||
tools:text="Info A" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_info"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Base"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
|
||||||
tools:text="Info B" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButtonGroup
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:spacing="@dimen/spacing_small"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_info">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
|
||||||
android:id="@+id/detail_play_button"
|
|
||||||
style="@style/Widget.Auxio.Button.Secondary"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:text="@string/lbl_play"
|
|
||||||
app:icon="@drawable/ic_play_24"
|
|
||||||
tools:ignore="RtlSymmetry"/>
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
|
||||||
android:id="@+id/detail_shuffle_button"
|
|
||||||
style="@style/Widget.Auxio.Button.Primary"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:text="@string/lbl_shuffle"
|
|
||||||
app:icon="@drawable/ic_shuffle_off_24" />
|
|
||||||
</com.google.android.material.button.MaterialButtonGroup>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.divider.MaterialDivider
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
app:layout_collapseMode="pin" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.MultiToolbar
|
|
||||||
android:id="@+id/detail_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_collapseMode="pin">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_normal_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_detail"
|
|
||||||
app:navigationIcon="@drawable/ic_back_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_selection_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_selection"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_edit_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_edit"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.MultiToolbar>
|
|
||||||
|
|
||||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.CoordinatorAppBarLayout>
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
|
||||||
android:id="@+id/detail_recycler"
|
|
||||||
style="@style/Widget.Auxio.RecyclerView.Grid"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
android:background="?attr/colorSurface"
|
||||||
tools:listitem="@layout/item_song" />
|
android:transitionGroup="true">
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
||||||
|
<org.oxycblt.auxio.ui.MultiToolbar
|
||||||
|
android:id="@+id/detail_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_collapseMode="pin"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_normal_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_detail_land"
|
||||||
|
app:navigationIcon="@drawable/ic_back_24" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_selection_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_selection"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_edit_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_edit"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
</org.oxycblt.auxio.ui.MultiToolbar>
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.divider.MaterialDivider
|
||||||
|
android:id="@+id/detail_toolbar_divider"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
app:layout_collapseMode="pin"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/detail_pane"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/detail_recycler"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar">
|
||||||
|
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.image.CoverView
|
||||||
|
android:id="@+id/detail_cover"
|
||||||
|
style="@style/Widget.Auxio.Image.Huge"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
app:enablePlaybackIndicator="false"
|
||||||
|
app:enableSelectionBadge="false"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_type"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/detail_type"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
||||||
|
android:textColor="?attr/colorSecondary"
|
||||||
|
android:layout_marginTop="@dimen/spacing_medium"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_cover"
|
||||||
|
tools:text="Type" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_name"
|
||||||
|
style="@style/Widget.Auxio.TextView.Detail"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:maxLines="2"
|
||||||
|
android:ellipsize="end"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
||||||
|
tools:text="Name" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_subhead"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
||||||
|
tools:text="Info A" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_info"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/materialButtonGroup"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
tools:text="Info B" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButtonGroup
|
||||||
|
android:id="@+id/materialButtonGroup"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:spacing="@dimen/spacing_small"
|
||||||
|
android:layout_marginTop="@dimen/spacing_mid_medium"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_info"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
||||||
|
android:id="@+id/detail_play_button"
|
||||||
|
style="@style/Widget.Auxio.Button.Secondary"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="@string/lbl_play"
|
||||||
|
app:icon="@drawable/ic_play_24"
|
||||||
|
tools:ignore="RtlSymmetry" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
||||||
|
android:id="@+id/detail_shuffle_button"
|
||||||
|
style="@style/Widget.Auxio.Button.Primary"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="@string/lbl_shuffle"
|
||||||
|
app:icon="@drawable/ic_shuffle_off_24" />
|
||||||
|
</com.google.android.material.button.MaterialButtonGroup>
|
||||||
|
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
||||||
|
android:id="@+id/detail_recycler"
|
||||||
|
style="@style/Widget.Auxio.RecyclerView.Linear"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_pane"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar_divider"
|
||||||
|
tools:listitem="@layout/item_song" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
</FrameLayout>
|
||||||
@@ -1,190 +1,183 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/detail_coordinator"
|
android:id="@+id/wrapper_to_please_compiler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/detail_constraint"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?attr/colorSurface"
|
android:background="?attr/colorSurface"
|
||||||
android:transitionGroup="true">
|
android:transitionGroup="true">
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
|
||||||
android:id="@+id/detail_appbar"
|
|
||||||
style="@style/Widget.Auxio.AppBarLayout"
|
|
||||||
app:layout_behavior="org.oxycblt.auxio.detail.ContinuousAppBarLayoutBehavior"
|
|
||||||
app:liftOnScroll="true"
|
|
||||||
app:liftOnScrollTargetViewId="@id/detail_recycler">
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
<org.oxycblt.auxio.ui.MultiToolbar
|
||||||
android:id="@+id/detail_collapsing_toolbar"
|
android:id="@+id/detail_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_collapseMode="pin"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_normal_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
app:expandedTitleMargin="0dp"
|
android:clickable="true"
|
||||||
app:forceApplySystemWindowInsetTop="false"
|
android:focusable="true"
|
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
app:menu="@menu/toolbar_detail_land"
|
||||||
app:titleEnabled="false"
|
app:navigationIcon="@drawable/ic_back_24" />
|
||||||
app:toolbarId="@+id/detail_toolbar">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
android:id="@+id/detail_header"
|
android:id="@+id/detail_selection_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_selection"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_edit_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_edit"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
</org.oxycblt.auxio.ui.MultiToolbar>
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.divider.MaterialDivider
|
||||||
|
android:id="@+id/detail_toolbar_divider"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
app:layout_collapseMode="pin"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/detail_pane"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/detail_recycler"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.image.CoverView
|
||||||
|
android:id="@+id/detail_cover"
|
||||||
|
style="@style/Widget.Auxio.Image.Large"
|
||||||
|
app:enablePlaybackIndicator="false"
|
||||||
|
app:enableSelectionBadge="false"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/materialButtonGroup"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/materialButtonGroup"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/spacing_medium"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
||||||
|
android:textColor="?attr/colorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/materialButtonGroup"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:text="Type" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_name"
|
||||||
|
style="@style/Widget.Auxio.TextView.Detail"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/detail_type"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/detail_type"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
||||||
|
tools:text="Name" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_subhead"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/detail_type"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/detail_name"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
||||||
|
tools:text="Info A" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_info"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/detail_type"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/detail_name"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
||||||
|
tools:text="Info B" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButtonGroup
|
||||||
|
android:id="@+id/materialButtonGroup"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/spacing_medium"
|
||||||
|
android:layout_marginTop="@dimen/spacing_mid_medium"
|
||||||
|
android:spacing="@dimen/spacing_small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_cover">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
||||||
|
android:id="@+id/detail_play_button"
|
||||||
|
style="@style/Widget.Auxio.Button.Secondary"
|
||||||
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_weight="1"
|
||||||
android:paddingStart="@dimen/spacing_medium"
|
android:text="@string/lbl_play"
|
||||||
android:paddingTop="?attr/actionBarSize"
|
app:icon="@drawable/ic_play_24"
|
||||||
android:paddingEnd="@dimen/spacing_medium"
|
tools:ignore="RtlSymmetry" />
|
||||||
app:layout_collapseMode="parallax"
|
|
||||||
app:layout_collapseParallaxMultiplier="0.85">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.image.CoverView
|
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
||||||
android:id="@+id/detail_cover"
|
android:id="@+id/detail_shuffle_button"
|
||||||
style="@style/Widget.Auxio.Image.Large"
|
style="@style/Widget.Auxio.Button.Primary"
|
||||||
app:enablePlaybackIndicator="false"
|
android:layout_width="0dp"
|
||||||
app:enableSelectionBadge="false"
|
|
||||||
android:layout_marginTop="@dimen/spacing_medium"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
tools:ignore="ContentDescription" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_type"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
|
||||||
android:textColor="?attr/colorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintVertical_chainStyle="packed"
|
|
||||||
tools:text="Type" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_name"
|
|
||||||
style="@style/Widget.Auxio.TextView.Detail"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
|
||||||
tools:text="Name" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_subhead"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Ellipsize"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
|
||||||
tools:text="Info A" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_info"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Base"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
|
||||||
tools:text="Info B" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButtonGroup
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/spacing_mid_medium"
|
|
||||||
android:layout_marginBottom="@dimen/spacing_mid_medium"
|
|
||||||
android:spacing="@dimen/spacing_small"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_cover">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
|
||||||
android:id="@+id/detail_play_button"
|
|
||||||
style="@style/Widget.Auxio.Button.Secondary"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:text="@string/lbl_play"
|
|
||||||
app:icon="@drawable/ic_play_24"
|
|
||||||
tools:ignore="RtlSymmetry"/>
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
|
||||||
android:id="@+id/detail_shuffle_button"
|
|
||||||
style="@style/Widget.Auxio.Button.Primary"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:text="@string/lbl_shuffle"
|
|
||||||
app:icon="@drawable/ic_shuffle_off_24" />
|
|
||||||
</com.google.android.material.button.MaterialButtonGroup>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.divider.MaterialDivider
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_weight="1"
|
||||||
app:layout_collapseMode="pin" />
|
android:text="@string/lbl_shuffle"
|
||||||
|
app:icon="@drawable/ic_shuffle_off_24" />
|
||||||
|
</com.google.android.material.button.MaterialButtonGroup>
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.MultiToolbar
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
android:id="@+id/detail_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_collapseMode="pin">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_normal_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_detail"
|
|
||||||
app:navigationIcon="@drawable/ic_back_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_selection_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_selection"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_edit_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_edit"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.MultiToolbar>
|
|
||||||
|
|
||||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.CoordinatorAppBarLayout>
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
||||||
android:id="@+id/detail_recycler"
|
android:id="@+id/detail_recycler"
|
||||||
style="@style/Widget.Auxio.RecyclerView.Grid"
|
style="@style/Widget.Auxio.RecyclerView.Linear"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="0dp"
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintHorizontal_weight="1"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_pane"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_toolbar_divider"
|
||||||
tools:listitem="@layout/item_song" />
|
tools:listitem="@layout/item_song" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</FrameLayout>
|
||||||
@@ -1,163 +1,171 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/detail_coordinator"
|
android:id="@+id/wrapper_to_please_compiler"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:background="?attr/colorSurface"
|
|
||||||
android:transitionGroup="true">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
android:id="@+id/detail_appbar"
|
android:id="@+id/detail_coordinator"
|
||||||
style="@style/Widget.Auxio.AppBarLayout"
|
|
||||||
app:liftOnScroll="true"
|
|
||||||
app:layout_behavior="org.oxycblt.auxio.detail.ContinuousAppBarLayoutBehavior"
|
|
||||||
app:liftOnScrollTargetViewId="@id/detail_recycler">
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
||||||
android:id="@+id/detail_collapsing_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
app:expandedTitleMargin="0dp"
|
|
||||||
app:forceApplySystemWindowInsetTop="false"
|
|
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
||||||
app:titleEnabled="false"
|
|
||||||
app:toolbarId="@+id/detail_toolbar">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:id="@+id/detail_header"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
android:paddingStart="@dimen/spacing_medium"
|
|
||||||
android:paddingTop="?attr/actionBarSize"
|
|
||||||
android:paddingEnd="@dimen/spacing_medium"
|
|
||||||
app:layout_collapseMode="parallax"
|
|
||||||
app:layout_collapseParallaxMultiplier="0.85">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.image.CoverView
|
|
||||||
android:id="@+id/detail_cover"
|
|
||||||
style="@style/Widget.Auxio.Image.MidLarge"
|
|
||||||
app:enablePlaybackIndicator="false"
|
|
||||||
app:enableSelectionBadge="false"
|
|
||||||
android:layout_marginTop="@dimen/spacing_medium"
|
|
||||||
android:layout_marginBottom="@dimen/spacing_medium"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintVertical_chainStyle="packed"
|
|
||||||
tools:ignore="ContentDescription" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_type"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
|
||||||
android:textColor="?attr/colorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintVertical_chainStyle="packed"
|
|
||||||
tools:text="Type" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_name"
|
|
||||||
style="@style/Widget.Auxio.TextView.Primary.Compact"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
|
||||||
tools:text="Name" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_subhead"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Compact"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
|
||||||
tools:text="Info A" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/detail_info"
|
|
||||||
style="@style/Widget.Auxio.TextView.Secondary.Compact"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/spacing_medium"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
|
||||||
tools:text="Info B" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<com.google.android.material.divider.MaterialDivider
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
app:layout_collapseMode="pin" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.MultiToolbar
|
|
||||||
android:id="@+id/detail_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_collapseMode="pin">
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_normal_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_detail"
|
|
||||||
app:navigationIcon="@drawable/ic_back_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_selection_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_selection"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
|
||||||
android:id="@+id/detail_edit_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:menu="@menu/toolbar_edit"
|
|
||||||
app:navigationIcon="@drawable/ic_close_24" />
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.MultiToolbar>
|
|
||||||
|
|
||||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
||||||
|
|
||||||
</org.oxycblt.auxio.ui.CoordinatorAppBarLayout>
|
|
||||||
|
|
||||||
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
|
||||||
android:id="@+id/detail_recycler"
|
|
||||||
style="@style/Widget.Auxio.RecyclerView.Grid"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
android:background="?attr/colorSurface"
|
||||||
tools:listitem="@layout/item_song" />
|
android:transitionGroup="true">
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
||||||
|
android:id="@+id/detail_appbar"
|
||||||
|
style="@style/Widget.Auxio.AppBarLayout"
|
||||||
|
app:liftOnScroll="true"
|
||||||
|
app:layout_behavior="org.oxycblt.auxio.detail.ContinuousAppBarLayoutBehavior"
|
||||||
|
app:liftOnScrollTargetViewId="@id/detail_recycler">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||||
|
android:id="@+id/detail_collapsing_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
app:expandedTitleMargin="0dp"
|
||||||
|
app:forceApplySystemWindowInsetTop="false"
|
||||||
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
||||||
|
app:titleEnabled="false"
|
||||||
|
app:toolbarId="@+id/detail_toolbar">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/detail_header"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:paddingStart="@dimen/spacing_medium"
|
||||||
|
android:paddingTop="?attr/actionBarSize"
|
||||||
|
android:paddingEnd="@dimen/spacing_medium"
|
||||||
|
app:layout_collapseMode="parallax"
|
||||||
|
app:layout_collapseParallaxMultiplier="0.85">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.image.CoverView
|
||||||
|
android:id="@+id/detail_cover"
|
||||||
|
style="@style/Widget.Auxio.Image.MidLarge"
|
||||||
|
app:enablePlaybackIndicator="false"
|
||||||
|
app:enableSelectionBadge="false"
|
||||||
|
android:layout_marginTop="@dimen/spacing_medium"
|
||||||
|
android:layout_marginBottom="@dimen/spacing_medium"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/spacing_medium"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMediumEmphasized"
|
||||||
|
android:textColor="?attr/colorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_name"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:text="Type" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_name"
|
||||||
|
style="@style/Widget.Auxio.TextView.Primary.Compact"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/spacing_medium"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_subhead"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_type"
|
||||||
|
tools:text="Name" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_subhead"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Compact"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/spacing_medium"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/detail_info"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_name"
|
||||||
|
tools:text="Info A" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/detail_info"
|
||||||
|
style="@style/Widget.Auxio.TextView.Secondary.Compact"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/spacing_medium"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/detail_cover"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/detail_subhead"
|
||||||
|
tools:text="Info B" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.divider.MaterialDivider
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
app:layout_collapseMode="pin" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.MultiToolbar
|
||||||
|
android:id="@+id/detail_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_collapseMode="pin">
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_normal_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_detail"
|
||||||
|
app:navigationIcon="@drawable/ic_back_24" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_selection_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_selection"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||||
|
android:id="@+id/detail_edit_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
app:menu="@menu/toolbar_edit"
|
||||||
|
app:navigationIcon="@drawable/ic_close_24" />
|
||||||
|
|
||||||
|
</org.oxycblt.auxio.ui.MultiToolbar>
|
||||||
|
|
||||||
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
||||||
|
|
||||||
|
</org.oxycblt.auxio.ui.CoordinatorAppBarLayout>
|
||||||
|
|
||||||
|
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
||||||
|
android:id="@+id/detail_recycler"
|
||||||
|
style="@style/Widget.Auxio.RecyclerView.Grid"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
||||||
|
tools:listitem="@layout/item_song" />
|
||||||
|
|
||||||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
<item
|
||||||
|
android:id="@+id/placeholder"
|
||||||
|
android:title=""
|
||||||
|
app:showAsAction="never" />
|
||||||
|
</menu>
|
||||||
Reference in New Issue
Block a user