ui: add item selection indicator

Update the item backgrounds to respond to a selection.
This commit is contained in:
Alexander Capehart
2022-11-22 12:05:20 -07:00
parent abd51ad16e
commit a4cc27d85e
4 changed files with 8 additions and 1 deletions
@@ -110,6 +110,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
super.onAttachedToWindow()
invalidateAlpha()
invalidatePlayingIndicator()
invalidateSelectionIndicator()
}
override fun setActivated(activated: Boolean) {
@@ -21,6 +21,7 @@ import android.content.Context
import android.graphics.Rect
import android.util.AttributeSet
import android.view.WindowInsets
import android.widget.Checkable
import androidx.annotation.AttrRes
import androidx.core.view.updatePadding
import androidx.recyclerview.widget.GridLayoutManager