Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

itsjose/CircularImageView

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
11 Commits
 
 
 
 
 
 

Repository files navigation

CircularImageView

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

Image Result

Capture Project

USAGE

To make a circular ImageView add CircularImageView library in your project and add CircularImageView in your layout XML.

XML

<com.mikhaellopez.circularimageview.CircularImageView
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:src="@drawable/image"
        app:border_color="#EEEEEE"
        app:border_width="4dp"
        app:shadow="true" />

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

#####Properties:

  • app:border (boolean) -> default true
  • app:border_color (color) -> default WHITE
  • app:border_width (dimension) -> default 4dp
  • app:shadow (boolean) -> default false

JAVA

CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);
circularImageView.setBorderColor(getResources().getColor(R.color.GrayLight));
circularImageView.setBorderWidth(10);
circularImageView.addShadow();

LINK

Stack OverFlow:

I realized this project using this post:

LICENCE

CircularImageView by Lopez Mikhael is licensed under a Creative Commons Attribution 4.0 International License. Based on a work at https://github.com/lopspower/CircularImageView.

About

Create circular image view in android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.