This is an Android project allowing to realize a circular ImageView in the simplest way possible.
To make a circular ImageView add CircularImageView library in your project and add CircularImageView in your layout XML.
<com.mikhaellopez.circularimageview.CircularImageView
android:layout_width="250dp"
android:layout_height="250dp"
android:src="@drawable/image"
app:border_color="#EEEEEE"
app:border_width="10"
app:shadow="true" />
You must use the following properties in your XML to change your CircularImageView.
#####Properties:
app:border
(boolean) -> default trueapp:border_color
(color) -> default WHITEapp:border_width
(integer) -> default 4app:shadow
(boolean) -> default false
CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);
circularImageView.setBorderColor(getResources().getColor(R.color.GrayLight));
circularImageView.setBorderWidth(10);
circularImageView.addShadow();
Stack OverFlow:
I realized this project using this post: