Created
November 14, 2016 17:08
-
-
Save SunilDSK/fa835466ed4101edfae625f97cb17ac0 to your computer and use it in GitHub Desktop.
Android vector drawable: Dotted round rect
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"> | |
<stroke | |
android:color="@color/cardview_dark_background" | |
android:width="1dp" | |
android:dashGap="2sp" | |
android:dashWidth="7dp"/> | |
<corners android:radius="5dp"/> | |
</shape> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drop this code in some drawable (Ex: roundrect_selectimage.xml). Then use it in "
android:background
" of any widget like -An example
Here I have used a
FrameLayout
and TextView overlapping the ImageButton (See the event poster sections below code is of only event poster section)Code