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(); } });
Comments
Post a Comment