jeudi 21 mai 2015

Recyclerview onScrolled returns 0

It works fine if I just use my fingers to do manual scrolling, but if I do

recyclerview.scrollToPosition();

It will return 0, I tried overwriting it and calling

super.computeHorizontalScrollOffset();

and

super.computeVerticalScrollOffset()

and return those values in onScrolled but still 0.

Aucun commentaire:

Enregistrer un commentaire