Advertisement

Responsive Advertisement

For Circle image viewer with android material theme


  1. First of all add dependency in gradle file :-

    implementation 'com.google.android.material:material:1.8.0'


  2. Add Style in your  style list:- 

    <style name="CornerSize20Percent" parent="">
    <item name="cornerSize">20%</item>
    </style>

  3. Now You Can Use Your File In Activity Xml File


    <com.google.android.material.imageview.ShapeableImageView
    android:id="@+id/userImage"
    android:layout_width="@dimen/_35sp"
    android:layout_height="@dimen/_35sp"
    android:src="@drawable/profile_logo"
    app:shapeAppearance="@style/CornerSize50Percent" />



Post a Comment

0 Comments