Sergio76
Sergio76

Reputation: 3986

Apply a gradient to a listview in android

I'm trying to use a listview in my application with a gradient from the bottom. I do not want to use the gradient in the background, I like to use it in the listview. To try to explain better, I attached a picture of what I want.

enter image description here

The background will show images that will change.

I searched a lot and made ​​several tests, but without success. I appreciate any help.

Thanks and regards

Upvotes: 1

Views: 281

Answers (1)

user1971
user1971

Reputation: 698

Android has something built in for that. It is called fading edge. The two XML properties are android:fadingEdgeLength and android:requiresFadingEdge. If you were hoping to have the image gradient change, I don't think they are dynamic.

Upvotes: 3

Related Questions