In reference to these questions :
Adding gradient effect to TextView in a ListView generates NPE
and
How to change color and font on ListView
Once you create a gradient you can apply it to pretty much anything let it be textView, layout or button.
To understand how to create and use a gradient refer this link.
To create a gradient you need to add it to the below directory
Code for gradient would be something like this -