Remove Shadow from ListView in Android

October 18th, 2011

If you need to remove shadow from top and bottom of your ListView, you can do the following :

android:fadingEdge="none"

For example :

1
2
3
4
5
6
<ListView 
    android:fadingEdge="none"
    android:id="@android:id/list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
/>

or if you want to do it programmatically, you can use :

listView.setVerticalFadingEdgeEnabled(false);

Related posts:

  1. Rounded TextView in Android
  2. How to Make Tiled Background in Android
  3. Android App, A Month Later
  4. Android App : Freelance Jobs

Tags: android

Sharing is caring

Stumble

One Comment

  • spacer 180t grill says:
    November 3, 2011 at 11:23 pm

    Great information, thanks for the share!

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.