android - Weird Behavior of RecyclerView -


i have fragment has recyclerview in it.

on top of recyclerview, place view.

but surprise. recyclerview still swipable, isn't suppose blocked view. how possible still receives touch events?

any thoughts on please? how can prevent recyclerview receiving touch events when view on top of it?

as have view on recyclerview , want prevent touch on recyclerview, need add touchlistener on view. adding touchlistener on view prevent touch on recyclerview.

((view)findviewbyid(r.id.view)).setonclicklistener(new onclicklistener() {              @override              public void onclick(view v) {                  toast.maketext(activity, "view clicked", toast.length_short).show();              }          });
if there no touch event binded topmost view goes next layout.


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -