Rounded corner for textview in android

前端 未结 11 1150
猫巷女王i
猫巷女王i 2020-12-02 04:30

I have a textview and want its corner to be in round shape. I already know it can be done using android:background=\"@drawable/somefile\". In my case, this tag

11条回答
  •  遥遥无期
    2020-12-02 05:01

    Since your top level view already has android:background property set, you can use a (link) to create a new XML drawable that combines both your old background and your new rounded corners background.

    Each element in the list is drawn over the next, so the last item in the list is the one that ends up on top.

    
    
        
            
        
        
            
                
    
                
    
                
    
                
            
        
    
    

提交回复
热议问题