سؤال

Scroll of my listview is very fast. I want to customize this and want to make it slower. I tried set android:fastscrollenabled="false" but it does not solve this problem.

My device is Samsung Galaxy S2.

Can someone help me?

هل كانت مفيدة؟

المحلول

Please use setFriction(float) method of ListView. Because default friction value could differ between devices, it's better to use base value from ViewConfiguration.getScrollFriction()

Example:

setFriction(ViewConfiguration.getScrollFriction() * 2);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top