I want to use OnLongClickListener. I put an imageview inside the cardview and applied a blurview. I applied longclick to Cardview. But when I clicked on the imageview, longclick didn't work. I want to make longclick work when I hit the area of Cardview. However, imageview has blurview, so it does not work in imageview area. So I tried applying OnLongClickListener to the imageview to solve this. But when I use OnLongClickListener for imageview, blurview doesn't work. Please tell me the solution.
Activity
ryu884 commentedon Sep 27, 2019
`<androidx.cardview.widget.CardView
android:id="@+id/cardview1"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="180dp"
xmlns:cardview="http://schemas.android.com/apk/res-auto"
android:layout_margin="6dp"
cardview:cardCornerRadius="15dp"
android:weightSum="10"
>
</androidx.cardview.widget.CardView>
`