Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android xml circular image

 "In build.graddle(app) dependencies section add " 
       implementation 'com.google.android.material:material:1.6.1'
       
 "then in your xml"      
      
      
      <androidx.cardview.widget.CardView
                    android:layout_width="30dp"
                    android:layout_height="30dp"
                    app:cardCornerRadius="40dp">
                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:src="@drawable/face1"
                        android:scaleType="centerCrop"
                        />
       </androidx.cardview.widget.CardView>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #android #xml #circular #image
ADD COMMENT
Topic
Name
8+3 =