Updated previews for Album cover style
This commit is contained in:
parent
41c2af0ed6
commit
675c2fe4fa
38 changed files with 7 additions and 15 deletions
|
@ -10,9 +10,9 @@ enum class AlbumCoverStyle(@param:StringRes @field:StringRes
|
|||
@param:DrawableRes @field:DrawableRes
|
||||
val drawableResId: Int, val id: Int) {
|
||||
NORMAL(R.string.normal, R.drawable.album_cover_normal, 0),
|
||||
FLAT(R.string.flat, R.drawable.album_cover_square, 1),
|
||||
FLAT(R.string.flat, R.drawable.album_cover_flat, 1),
|
||||
CIRCLE(R.string.circular, R.drawable.album_cover_circle, 2),
|
||||
MATERIAL(R.string.material, R.drawable.album_cover_normal, 3),
|
||||
MATERIAL(R.string.material, R.drawable.album_cover_material, 3),
|
||||
CARD(R.string.card, R.drawable.album_cover_card, 4),
|
||||
FULL(R.string.full, R.drawable.album_cover_full, 5),
|
||||
FULL_CARD(R.string.full_card, R.drawable.album_cover_full_card, 6)
|
||||
|
|
|
@ -29,6 +29,7 @@ public class StatusBarMarginFrameLayout extends FrameLayout {
|
|||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
MarginLayoutParams lp = (MarginLayoutParams) getLayoutParams();
|
||||
lp.topMargin = insets.getSystemWindowInsetTop();
|
||||
lp.bottomMargin = insets.getSystemWindowInsetBottom();
|
||||
setLayoutParams(lp);
|
||||
}
|
||||
return super.onApplyWindowInsets(insets);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue