android - How to smoothly scroll to a position and make it appear at beginning in RecyclerView? -


i have tried recyclerview.smoothscrolltoposition(int position), it's not want. scrolls position child viewport; can either appear @ beginning or end. moreover, if view in viewport, won't anything!

what need scroll position , make appear @ beginning of recyclerview arouse user's attention. how can it?

you can use mrecyclerview.scrolltoposition(position); display list item @ top. go specified position without scrolling effect.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -