ImageView in circular through xml

前端 未结 27 1303
死守一世寂寞
死守一世寂寞 2020-11-22 10:35

I\'d Like to make any image from my ImageView to be circular with a border.

I searched but couldn\'t find any useful information (anything that I tried

27条回答
  •  误落风尘
    2020-11-22 10:42

    This is a relatively old question, but you can just make a circle border in the drawable folder (let's assume the xml file will be called circle_border)

    
    
    
        
    
        
        
    
        
        
    
    
    

    Then you can use it as the background of the ImageView

    
    />
    

提交回复
热议问题