I have a ListView that I call smoothScrollBy() on. 95% of the time, smoothScrollTo() behaves as intended. However, there are times when it does not end in the intended place! I confirmed that I give him the same meaning. I notice that smooth scrolling is not so smooth when errors are made, however there are no other tasks that my application performs that I would control.
I'm not quite sure what is going on in the background, but the likely culprit is garbage collection.
95% accuracy is not good enough in this situation. I am going to implement some kind of correction mechanism to make sure the ListView gets to the right place in these cases.
Is there a better way to use smoothScrollBy() , besides just calling view.smoothScrollBy(distance, time); ?
android listview scroll
styler1972 Sep 29 '11 at 16:18 2011-09-29 16:18
source share