How to make TextView shape circle and set different background color based on condition

后端 未结 5 1203
死守一世寂寞
死守一世寂寞 2020-12-08 08:09

I have a TextView, what I want is to make the TextView shape circle and then set different background colors based on different conditions I have u

5条回答
  •  孤街浪徒
    2020-12-08 08:31

    Add circular_hired.xml file into your drawable,

      
        
    
    
                
                
    
        
    

    but in you layout design xml file , you have to fix the width and height of textview. it will give the circular form.

    
    

    i sure it will help you,

提交回复
热议问题