Skip to content

Instantly share code, notes, and snippets.

@faisalmohd83
Last active March 23, 2022 09:52
Show Gist options
  • Save faisalmohd83/27c2a066b4a39c242f08d76bb388af2f to your computer and use it in GitHub Desktop.
Save faisalmohd83/27c2a066b4a39c242f08d76bb388af2f to your computer and use it in GitHub Desktop.
Rounded double border for ImageView with text
Layered-list shape for double bordered background for Shapeable Imageview
--
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- filler -->
<item>
<shape android:shape="oval">
<size
android:width="100dp"
android:height="100dp" />
<solid android:color="@color/placeholder" />
</shape>
</item>
<!-- border -->
<item
android:bottom="-12dp"
android:left="-12dp"
android:right="-12dp"
android:top="-12dp">
<shape
android:shape="ring"
android:thickness="4dp"
android:useLevel="false">
<solid android:color="@color/on_primary_text_color" />
</shape>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment