Skip to content

Instantly share code, notes, and snippets.

@smartherd
Last active January 2, 2024 16:10
Show Gist options
  • Save smartherd/a67a7a90b41acd63312ed9fb94234be8 to your computer and use it in GitHub Desktop.
Save smartherd/a67a7a90b41acd63312ed9fb94234be8 to your computer and use it in GitHub Desktop.
CircularImageView
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/celebrityImage"
android:layout_width="250dp"
android:layout_height="250dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:src="@drawable/sunny"
app:civ_border_width="3dp"
app:civ_border_color="#3F51B5"/>
</androidx.constraintlayout.widget.ConstraintLayout>
@Anandhup123
Copy link

this is truly helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment