Tweak cover stack in category item

This commit is contained in:
Zakhar Timoshenko
2022-07-09 17:25:22 +03:00
parent 80db7f0b74
commit 3511c02c69
3 changed files with 12 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ fun categoryAD(
binding.imageViewCover2,
ColorStateList.valueOf(ColorUtils.setAlphaComponent(backgroundColor, 76))
)
binding.imageViewCover2.backgroundTintList = ColorStateList.valueOf(ColorUtils.setAlphaComponent(backgroundColor, 76))
binding.imageViewCover3.backgroundTintList = ColorStateList.valueOf(ColorUtils.setAlphaComponent(backgroundColor, 153))
val fallback = ColorDrawable(Color.TRANSPARENT)
val coverViews = arrayOf(binding.imageViewCover1, binding.imageViewCover2, binding.imageViewCover3)
val imageRequests = arrayOfNulls<Disposable?>(coverViews.size)