Skip to content
Compare
Choose a tag to compare
@mammahe mammahe released this 03 Aug 10:36
· 2 commits to master since this release
6bd2c3d

CircleImageView                                   

A fast CompassImageView perfect for Round Images in Android. 

Usage

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

 

Add the dependency

dependencies {
	        implementation 'com.github.mammahe:CompassImageView:a15953d0b7'
	}

Add it in your res/activity_main.xml as shown below

<com.sairamkrishna.compassimageview.CompassImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:src="@drawable/musk"
app:image_background_color="#FF000000"
app:image_border_color="#B22222"
app:image_border_width="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />

Output

License

Copyright 2019 Sairamkrishna Mammahe

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software under the License is distributed on an "AS IS" BASIS, WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. the License for the specific language governing permissions and under the License.