ImageView in circular through xml

前端 未结 27 1370
死守一世寂寞
死守一世寂寞 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 11:01

    I use shape = "oval" instead of the "ring" below. It has worked for me. To keep the image within bounds, I use and set to true in my . I have tried with images of size between 50 x 50 px upto 200x200 px .

提交回复
热议问题