diff --git a/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt b/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt index 5a237b17..4a1ee7d9 100644 --- a/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt +++ b/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt @@ -22,6 +22,7 @@ import android.view.MotionEvent import android.view.View import android.view.ViewGroup import android.widget.* +import androidx.appcompat.content.res.AppCompatResources import androidx.core.content.res.ResourcesCompat import androidx.core.text.HtmlCompat import androidx.core.text.util.LinkifyCompat @@ -461,7 +462,7 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int) init { itemView as FrameLayout itemView.foreground = - itemView.context.getDrawableFromAttr(android.R.attr.selectableItemBackground) + AppCompatResources.getDrawable(itemView.context, R.drawable.bg_item_rounded_ripple) val surfaceColor = itemView.context.getColorFromAttr(R.attr.colorSurface).defaultColor diff --git a/src/main/res/drawable/bg_item_rounded_ripple.xml b/src/main/res/drawable/bg_item_rounded_ripple.xml new file mode 100644 index 00000000..5875c780 --- /dev/null +++ b/src/main/res/drawable/bg_item_rounded_ripple.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file