Create circular ImageView in Android in the simplest way possible.

Min SDK   15
Latest Commit   2016-02-25 15:41:21
License   MIT

Github   https://github.com/lopspower/CircularImageView

         

Using app client to scan QR code to run Demo


...

lopspower
MyStudioFactory
Paris, France

http://mikhaellopez.com
Lead Android Developer @ MyStudioFactory

         

Similarily...
BlurImageView BlurImageView, you can load your image progressively like Medium does.First show user a blurry image, At the same time, load the real image, once loaded, replace the blurry one automatically
DragPhotoView A photoView to scale image and finish activity,高仿微信可拖拽返回PhotoView
CaptchaImageView Custom ImageView to generate captcha image.
README

README.md

CircularImageView

Android Arsenal Platform API Twitter

This is an Android project allowing to realize a circular ImageView in the simplest way possible.

sample

USAGE

To make a circular ImageView add CircularImageView in your layout XML and add CircularImageView library in your project or you can also grab it via Gradle:

compile 'com.mikhaellopez:circularimageview:3.0.2'

XML

<com.mikhaellopez.circularimageview.CircularImageView
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:src="@drawable/image"
        app:civ_border_color="#EEEEEE"
        app:civ_border_width="4dp"
        app:civ_shadow="true"
        app:civ_shadow_radius="10"
        app:civ_shadow_color="#8BC34A"/>

You must use the following properties in your XML to change your CircularImageView.

#####Properties:

  • app:civ_border (boolean) -> default true
  • app:civ_border_color (color) -> default WHITE
  • app:civ_border_width (dimension) -> default 4dp
  • app:civ_shadow (boolean) -> default false
  • app:civ_shadow_color (color) -> default BLACK
  • app:civ_shadow_radius (float) -> default 8.0f

JAVA

CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);
// Set Border
circularImageView.setBorderColor(getResources().getColor(R.color.GrayLight));
circularImageView.setBorderWidth(10);
// Add Shadow with default param
circularImageView.addShadow();
// or with custom param
circularImageView.setShadowRadius(15);
circularImageView.setShadowColor(Color.RED);

LINK

Stack OverFlow:

I realized this project using this post:

LICENCE

CircularImageView by Lopez Mikhael is licensed under a Apache License 2.0.