thorbenprimke / realm-recyclerview

A RecyclerView that is powered by Realm and lots more
555 stars 151 forks source link

ScrollToPosition #80

Closed MohammadRezaei92 closed 5 years ago

MohammadRezaei92 commented 8 years ago

Recyclerview.smoothScrollToPosition(Pos); doesn't work.

masilveira commented 8 years ago

smoothScrollToPosition it works for me... Try too...

MohammadRezaei92 commented 8 years ago

I get the position of item that I want to scroll to it and get it to smoothScrollToPosition as parameter but not happened

masilveira commented 8 years ago

try call this method on UiThread.. like this example: realmRecyclerView.post(new Runnable() { @Override public void run() { realmRecyclerView.smoothScrollToPosition(adapter.getItemCount()); } });

dimparf commented 7 years ago

In my case I need not smoothing scrolling (( but it's not working...

Farasy commented 7 years ago

try

realmRecyclerView.getRecycleView().scrollToPosition(position);