How to make layout with rounded corners..?

后端 未结 18 3249
独厮守ぢ
独厮守ぢ 2020-11-22 09:37

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

18条回答
  •  半阙折子戏
    2020-11-22 10:24

    I've taken @gauravsapiens answer with my comments inside to give you a reasonable apprehension of what the parameters will effect.

    
    
    
        
        
    
        
        
    
        
        
    
        
        
    
    
    

    If you're just looking to create a shape that rounds the corners, removing the padding and the stroke will do. If you remove the solid as well you will, in effect, have created rounded corners on a transparent background.

    For the sake of being lazy I have created a shape underneath, which is just a solid white background with rounded corners - enjoy! :)

    
    
    
        
        
    
        
        
    
    
    

提交回复
热议问题