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

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -