Android: Creating a Circular TextView?

后端 未结 11 1607
我在风中等你
我在风中等你 2020-12-04 08:53

My current simple XML is below, however i would like the 3 TextViews within it to be circular, rather than rectangular.

How can I change my code to do so?

         


        
11条回答
  •  醉酒成梦
    2020-12-04 09:54

    Try out below drawable file. Create file named "circle" in your res/drawable folder and copy below code:

       
    
    
        
    
        
    
        
    
        
    
    
    

    Apply it in your TextView as below:

    
    
        
    

    enter image description here

提交回复
热议问题