-
-
Save pacificregmi/f523f3c737d980d3a9d2 to your computer and use it in GitHub Desktop.
Adding Badge (Item Count) to Android Button - badge_item_count.xml
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
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle"> | |
<corners android:radius="8dp" /> | |
<solid android:color="#f20000" /> | |
<stroke | |
android:width="2dip" | |
android:color="#FFF" /> | |
<padding | |
android:bottom="6dp" | |
android:left="6dp" | |
android:right="6dp" | |
android:top="6dp" /> | |
</shape> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment