Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ListView OverScroll

I am filling a listView, then I wanted to do something fancy. I tried to add an OverScroll Header to the list, the effect I expected is that if I overscroll the list, a drawable will show up on top of the list, so the overscroll header looks like a hidden header for the list.

I set the overScrollHeader and overScrollMode in the layout xml file, however nothing changed. I did it on Nexus S.

So what can I expect from the overScrollHeader and how to make it work?

i will really appreciate it if someone can help me out.

like image 236
Jimmy Avatar asked Sep 14 '11 22:09

Jimmy


People also ask

Are ListView scrollable?

A ListView in Android is a scrollable list used to display items. Data, which is a list or array of items fetched from a source or hardcoded in the application can be displayed row-wise using a ListView.

What is the difference between ScrollView and ListView?

ScrollView is used to put different or same child views or layouts and the all can be scrolled. ListView is used to put same child view or layout as multiple items. All these items are also scrollable. Simply ScrollView is for both homogeneous and heterogeneous collection.

Is ListView scrollable by default?

scrollable Boolean|String (default: false) If set to true the listview will display a scrollbar when the content exceeds the listview height value. By default scrolling is disabled. It could be also set to endless in order to enable the endless scrolling functionality.


1 Answers

You can check https://jasonfry.co.uk/blog/android-overscroll-revisited/. However it doesn't work for android versions < 2.3.

like image 159
dimlah Avatar answered Oct 13 '22 06:10

dimlah