Scroll programmatically to specific position
Opened this issue · 3 comments
MauroAlexandro commented
Hi,
I want to scroll programmatically to a previous position. I enter the app and then enter in one item on the end of the list. When I go back to the grid I want it to be positioned on the last position.
How can I do that?
Thanks in advance,
krishnapatel086 commented
i need the same if anyone hv answer plz let me knows thnks in advance.
@MauroAlexandro hv you get the answer?
takhirovich commented
Did someone solve this problem? if yes help please. Thanks in advance
@MauroAlexandro @krishnapatel086
takhirovich commented
not best way. But, try this method, it is work for me
new Handler().postDelayed(new Runnable() {
@OverRide
public void run() {
recyclerView.smoothScrollToPosition(mToPosition);
}
}, 100);