I have implemented clickable Recyclerview
item and set android:background="?selectableItemBackground"
for click effect but while inspecting code I found this lint issue.
Lint warning :
Possible overdraw: Root element paints background ?selectableItemBackground
with a theme that also paints a background
Any idea to solve this warning?
My xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:clickable="true"
android:orientation="vertical"
android:padding="@dimen/row_padding">
//...
</LinearLayout >