ImageView in circular through xml

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

    Best Solution courtesy https://www.youtube.com/watch?v=0MHoNU7ytaw the width and height of the card view determine the size of the images it contains set up is as follows:

    1. Add Dependency to Gradle(Module)
    2. Add the xml code to activity.xml or fragment.xml file
        implementation 'androidx.cardview:cardview:1.0.0'
    
       
        
    
        
    
    
      ```
    
    

提交回复
热议问题