Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No elastic Scrolling in ListView

On my Samsung Galaxy S, the ListView gets an elastic effect if over-scrolled. But I don't want this in my application. Can I disable this elastic scrolling?

like image 596
Tschakle Avatar asked Apr 07 '11 14:04

Tschakle


2 Answers

If by Elastic you mean the way the listview handles overscrolling by doing it similar to the Sense UI or the iPhone, then you may be interested in setOverscrollMode, setOverscrollHeader, setOverscrollFooter, and onOverscroll. Good luck getting it resolved!

like image 100
tsmith Avatar answered Sep 21 '22 22:09

tsmith


You can disable elastic effect if Samsung has exposed a disable API for it, or you can override the methods specified in Ty.S's answer if the Android version is 2.3 or later (API level 9 and above). Otherwise there is no way you can fiddle with Samsung Galaxy's ListView.

like image 42
Ronnie Avatar answered Sep 23 '22 22:09

Ronnie