This library will allow developer to crop their relative layout in circle with style like gmail profile image.
We can install this library by using gradle
Step 1
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2
dependencies {
compile 'com.github.TuonBondol:AndroidCropCircleLayout:1.0.3'
}
<com.tuonbondol.cropcirclelayout.RoundedCornerLayout
android:layout_width="160dp"
android:layout_height="160dp"
android:layout_margin="20dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/user_profile" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#424242"
android:gravity="center"
android:padding="5dp"
android:text="ADD"
android:textColor="@android:color/white"
android:textSize="14sp" />
</com.tuonbondol.cropcirclelayout.RoundedCornerLayout>
Support Min Sdk version >= 14
- Bondol Tuon - Bondol Tuon
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details