circleimageview android github code example

Example 1: circle imageview dependency in android

implementation 'de.hdodenhof:circleimageview:3.1.0'

Example 2: circleimageview github

Gradle
dependencies {
    ...
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    //make sure use latest version of this. currently latest version is 3.1.0
    //in 25-05-2021;
}

Usage

<de.hdodenhof.circleimageview.CircleImageView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/profile_image"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:src="@drawable/profile"
    app:civ_border_width="2dp"
    app:civ_border_color="#FF000000"/>

Example 3: circular imageview android github

<de.hdodenhof.circleimageview.CircleImageView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/profile_image"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:src="@drawable/profile"
    app:civ_border_width="2dp"
    app:civ_border_color="#FF000000"/>

Tags:

Misc Example