Skip to content

Instantly share code, notes, and snippets.

@lokcito
Last active December 10, 2019 16:02
Show Gist options
  • Save lokcito/0d46f9cd9b89dd7635621fd0220f66a7 to your computer and use it in GitHub Desktop.
Save lokcito/0d46f9cd9b89dd7635621fd0220f66a7 to your computer and use it in GitHub Desktop.
Android ImageView Circular: Imágenes circulares
#Library Repository: https://github.com/hdodenhof/CircleImageView
#build.gradle (Module:App)
dependencies {
...
implementation 'de.hdodenhof:circleimageview:3.0.1'
...
}
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="146dp"
android:layout_height="96dp"
android:src="@drawable/fbx" app:civ_border_width="2dp"
app:civ_border_color="#FF000000"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment