Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overscroll scrolling indicators with clip to padding

Im having this problem I cant get rid of on froyo and gingerbread. I am using clipToPadding="false" attribute to not have the top and bottom padding around listView unless its ends. However on 2.2 and 2.3 this with the clipToPadding, causes the overscroll indicator or how should I call it, to ignore my clipToPadding setting and makes those white lines appear on my images not the screen edges.

enter image description here

This is however not present on ICS

like image 404
urSus Avatar asked Sep 14 '12 12:09

urSus


1 Answers

I believe those white lines you're seeing are the fadingEdge of the ListView. You can get rid of them by adding this attribute to your ListView in xml:

android:fadingEdge="none"

or in code:

listview.setVerticalFadingEdgeEnabled(false);

In ICS and forward, fading edges are disabled by default which is why you don't see them.

like image 144
Michael Celey Avatar answered Oct 30 '22 09:10

Michael Celey