Welcome to the Efficient Canvas CircleImageView Library! This library allows you to easily display Efficient CircleImageView in your Android applications.
Add the JitPack repository to your build file
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' } /// For Kt use this only maven("https://jitpack.io")
}
}
Add the dependency library // Canvas UI
dependencies {
implementation 'com.github.androidbulb:CircleImageViewLibrary:1.0'
}
Efficient CircleImageView Canvas in your View.xml Example
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<com.androidbulb.circleimage.CircleImageView
android:id="@+id/img_icon"
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/test" />
</LinearLayout>