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

后端 未结 5 1197
死守一世寂寞
死守一世寂寞 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:28

    To add up to the accepted answer, adding size tag inside shape and making sure height and width is large enough will make sure the background is circle even if textView has many characters!

    
     
     
     
    
    

提交回复
热议问题