agoda-com / Kakao

This repo is no longer supported. Please visit a https://github.com/KakaoCup/Kakao
Apache License 2.0
1.11k stars 102 forks source link

Scroll to RecyclerView element that part can be off screen #253

Closed szykam closed 3 years ago

szykam commented 3 years ago

Imagine that you have a RecyclerView that accommodates item that can be large (in height) eg. 10 lines on TextView + Button, and also buttons can be distinguish by index so 1st one has text Button 0, 10th Button 9, and so on. So if I want to click on the 10th button I'm able to scroll to 10th item in RecyclerView but button remains off screen and cannot be clicked. Library gives possibility to scroll to a view holder item but I'm able to figure out how to scroll a list so RecyclerView item child is visible.

Vacxe commented 3 years ago

I tried to reproduce this case with sample app and can't see any issue. If it possible could you modify for example MultiTypeRecyclerTest class to represent your issue and create a Pull request with it? It will definitely help us to recognise a tricky bug.