samedi 2 juillet 2016

Android: how do I exclude a CardView's checkbox from a LongClick method?

I have CardViews in a ReyclerView list. I set up so that a LongClick on a CardView launches a DialogFragment. On the CardView is a checkbox and I want to exclude the checkbox from the LongClick method; that is, I don't want the DialogFragment to load if the checkbox is LongClicked. I added 'android:longClickable="false"' and 'android:focusable="false"' to the CardView layout but that did not work. How would I achieve?




Aucun commentaire:

Enregistrer un commentaire