rzajac
rzajac

Reputation: 1601

android listview shadow

How can i get rid of the shadow when I scroll ListView.

I have shadows appearing on top and bottom of the list.

Upvotes: 14

Views: 9320

Answers (4)

RockerFlower
RockerFlower

Reputation: 727

android:overScrollMode = "never" works for me.

android:fadingEdge="none" didn't work.

See Remove shadow from top and bottom of ListView or RecyclerView.

Upvotes: 0

marienke
marienke

Reputation: 2475

As per this answer, android:fadingEdge="none" is deprecated since API Level 14, so rather use android:fadingEdgeLength="0dp"

Upvotes: 2

Redsmurf
Redsmurf

Reputation: 41

Be sure to watch your padding on the ListView. I had a Linear Layout that was in shade at the top and bottom, this was because I had set padding on the layout above and below, so it is crucial that you look at the padding.

Upvotes: 4

Fedor
Fedor

Reputation: 43422

<ListView 
   android:fadingEdge="none"
   ...
/>

Upvotes: 49

Related Questions