简体   繁体   中英

How to make Listview's Scroll slower?

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 don't solve this problem. My device is Samsung Galaxy S2. Can someone help me? Any help will be greatly appreciated! Thank in advanced :)

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM