Last active
March 23, 2022 09:52
-
-
Save faisalmohd83/27c2a066b4a39c242f08d76bb388af2f to your computer and use it in GitHub Desktop.
Rounded double border for ImageView with text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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