in listview, getlistview().setselection(n); used direct scroll , getlistview().smoothscrolltoposition(n); used smooth scroll.
is possible in recyclerview?
you'll have use scrolltopositionwithoffset.
//scroll item 2 20 pixels top linearlayoutmanager.scrolltopositionwithoffset(2, 20); this question answered before.
Comments
Post a Comment