ImageView in circular through xml

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

    I hope this will help you.

    1) CircleImageView

     
    

    Don't forget implementation: Gradle Scripts > build.gradle (Module: app) > dependencies

         implementation 'de.hdodenhof:circleimageview:3.1.0'   
    

    For complete description please check here : The Source here.

    2) CircularImageView

    
    

    Don't forget implementation: Gradle Scripts > build.gradle (Module: app) > dependencies

         implementation 'com.mikhaellopez:circularimageview:4.2.0'   
    

    For complete description please check here : The Source here.

提交回复
热议问题