Rounded Inner corners with transparent inside frame

后端 未结 3 1717
旧巷少年郎
旧巷少年郎 2020-12-25 12:23

I am trying to make a frame from code so that I can apply it to make rounded inner corners with a solid fill outside and transparent inside. Just like a solid re

3条回答
  •  粉色の甜心
    2020-12-25 12:48

    tweaking @Nima K solution, to avoid using an extra View

    create frame.xml @ drawable

    
    
    
        
            
                
                
            
        
    
        
            
                
    
                
    
                
            
    
        
    
    
    

    Then use it with 'android:background' attribute of your view

    
    

    And this is the result

提交回复
热议问题