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:

One Comment