ImageView in circular through xml

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

    also, these two libraries can help you.

    https://github.com/vinc3m1/RoundedImageView

    implement below code:

    implementation 'com.makeramen:roundedimageview:2.3.0'
    

    Simple Usage:

    
    

    https://github.com/chirag-kachhadiya/RoundedImageView

    Simple Usage:

    implement below code:

    implementation 'com.github.chirag-kachhadiya:RoundedImageView:1.0'
    
    
    
     
    

提交回复
热议问题