android - (Smooth)ScrollToPosition doesn't work properly with RecyclerView -


i'm using basic recyclerview gridlayoutmanager. observed nor smoothscrolltoposition nor scrolltoposition works properly.

a) when using smoothscrolltoposition receive error recyclerview

"recyclerview﹕ passed on target position while smooth scrolling."

and recyclerview not scrolled (often misses targeted row). observed when i'm trying scroll 1st item of row

b) when using scrolltoposition seems work quite ok of time can see 1st item of row , rest not displayed.

can give me hints how make work @ least 1 of methods?

thanks lot!

finally able make work! linearlayoutmanager.scrolltopositionwithoffset(int, int) did trick.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -