How can I add gradient effect to background color of TextView in a ListView?

前端 未结 3 2030
渐次进展
渐次进展 2020-12-24 01:54

In reference to these questions :

Adding gradient effect to TextView in a ListView generates NPE

and

How to change color and font on ListView

<
3条回答
  •  孤城傲影
    2020-12-24 02:18

    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 -

    
    
        
            
                
            
        
    
    

提交回复
热议问题