Search-View-Layout icon indicating copy to clipboard operation
Search-View-Layout copied to clipboard

onClick catch focus and will not let me scroll

Open droididan opened this issue 8 years ago • 5 comments

Hello,

When I implement OnClick on item in the list inside the search fragment I cant scroll. do you know why?

droididan avatar Jan 18 '17 06:01 droididan

Hi,

Have you tried the demo activities in the app? There are examples with Scrollview, RecyclerView to fix this issue.

sahildave avatar Jan 19 '17 11:01 sahildave

Hey, Even i am getting same issue. Keeping recyclerview focusable as true is not working even.

ShankyPatel avatar Mar 22 '17 13:03 ShankyPatel

Hello,

When I implement OnClick on item in the list inside the search fragment I cant scroll. do you know why?

i see problem come from searchlayout put inside appbar, if you can fixed it please alert me. thanks for it. and also, if owner really want to share project, please make it, use able

pinsoneatra avatar Sep 15 '18 04:09 pinsoneatra

i think this project is fail

pinsoneatra avatar Sep 15 '18 05:09 pinsoneatra

Hey, Even i am getting same issue. Keeping recyclerview focusable as true is not working even.

for this problem add this to your code :

rv_search.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() { @Override public boolean onInterceptTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) { rv.getParent().requestDisallowInterceptTouchEvent(true); return false; } @Override public void onTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) { } @Override public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) { } });

Ali72 avatar Mar 14 '19 09:03 Ali72