Ankit Srivastava
Ankit Srivastava

Reputation: 853

List View ,how to change Overscroll color

Hi i don't know what it is called so i don't know what to search for,hence here it is...

enter image description here

Please tell me what it is called and how to change it's color

This blue color appears when you pull a list view or a fragment.I want to change it

Upvotes: 2

Views: 884

Answers (2)

Prasanth Louis
Prasanth Louis

Reputation: 5056

There's a function setOverscrollHeader() Use the drawable component within the parentheses.

Upvotes: 2

Simas
Simas

Reputation: 44118

It's called the Overscroll. You can set the drawable like this

setOverscrollHeader(R.drawable.the_header);
setOverscrollFooter(R.drawable.the_footer);

You can also set it on your ListView through xml:

android:overScrollHeader="@drawable/the_header"
android:overScrollFooter="@drawable/the_footer"

Upvotes: 2

Related Questions