- First of all add dependency in gradle file :-
implementation 'com.google.android.material:material:1.8.0'
- Add Style in your style list:-
<style name="CornerSize20Percent" parent="">
<item name="cornerSize">20%</item>
</style>
- 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" />
0 Comments