[Album Cover Style] Removed Material Album cover style which was almost similar to Normal Album Style and Fixed Normal Album Style
This commit is contained in:
parent
91baedfc70
commit
22451b3cf1
4 changed files with 4 additions and 35 deletions
|
@ -148,7 +148,6 @@ class AlbumCoverPagerAdapter(
|
||||||
AlbumCoverStyle.Flat -> R.layout.fragment_album_flat_cover
|
AlbumCoverStyle.Flat -> R.layout.fragment_album_flat_cover
|
||||||
AlbumCoverStyle.Circle -> R.layout.fragment_album_circle_cover
|
AlbumCoverStyle.Circle -> R.layout.fragment_album_circle_cover
|
||||||
AlbumCoverStyle.Card -> R.layout.fragment_album_card_cover
|
AlbumCoverStyle.Card -> R.layout.fragment_album_card_cover
|
||||||
AlbumCoverStyle.Material -> R.layout.fragment_album_material_cover
|
|
||||||
AlbumCoverStyle.Full -> R.layout.fragment_album_full_cover
|
AlbumCoverStyle.Full -> R.layout.fragment_album_full_cover
|
||||||
AlbumCoverStyle.FullCard -> R.layout.fragment_album_full_card_cover
|
AlbumCoverStyle.FullCard -> R.layout.fragment_album_full_card_cover
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,10 @@ enum class AlbumCoverStyle(
|
||||||
@DrawableRes val drawableResId: Int,
|
@DrawableRes val drawableResId: Int,
|
||||||
val id: Int
|
val id: Int
|
||||||
) {
|
) {
|
||||||
Card(R.string.card, R.drawable.np_blur_card, 4),
|
Card(R.string.card, R.drawable.np_blur_card, 3),
|
||||||
Circle(R.string.circular, R.drawable.np_circle, 2),
|
Circle(R.string.circular, R.drawable.np_circle, 2),
|
||||||
Flat(R.string.flat, R.drawable.np_flat, 1),
|
Flat(R.string.flat, R.drawable.np_flat, 1),
|
||||||
FullCard(R.string.full_card, R.drawable.np_adaptive, 6),
|
FullCard(R.string.full_card, R.drawable.np_adaptive, 5),
|
||||||
Full(R.string.full, R.drawable.np_full, 5),
|
Full(R.string.full, R.drawable.np_full, 4),
|
||||||
Material(R.string.material, R.drawable.np_material, 3),
|
|
||||||
Normal(R.string.normal, R.drawable.np_normal, 0),
|
Normal(R.string.normal, R.drawable.np_normal, 0),
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,8 @@
|
||||||
<com.google.android.material.card.MaterialCardView
|
<com.google.android.material.card.MaterialCardView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
android:layout_margin="16dp"
|
||||||
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
||||||
app:cardElevation="8dp"
|
|
||||||
app:cardUseCompatPadding="true"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintDimensionRatio="1:1"
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
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">
|
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_margin="16dp"
|
|
||||||
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintDimensionRatio="1:1"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
|
||||||
android:id="@+id/player_image"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:scaleType="centerCrop"
|
|
||||||
tools:ignore="ContentDescription,UnusedAttribute"
|
|
||||||
tools:srcCompat="@tools:sample/backgrounds/scenic[8]" />
|
|
||||||
|
|
||||||
</com.google.android.material.card.MaterialCardView>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
Loading…
Add table
Add a link
Reference in a new issue