Skip to content

hivinau/CircleImageView

Repository files navigation

CircleImageView

This project is for free use. It deals with custom imageview that crop an image to a rounded shape.


Use it only on xml file layout.

Replace for example :


<Imageview

android:layout_width="source_width"

android:layout_height="source_height"

android:scaleType="centerCrop"

android:contentDescription="@null"

android:src="your_source"/>


By :


<fr.futurdigital.apps.android.circleimageview.CircleImageView

android:layout_width="source_width"

android:layout_height="source_height"

android:contentDescription="@null"

android:src="your_source"

custom:fill_color="#FFF"/>


Note : has only one custom attribut to set on xml -> if image is too small, we fill empty space with color chosen

See result :

![alt tag](http://s29.postimg.org/peudkq8c7/result.png)

About

Custom imageview to round bitmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages