Skip to content

Instantly share code, notes, and snippets.

@dineshvg
Created June 29, 2018 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dineshvg/6e74d04643425f5562354ce2aa07ed0f to your computer and use it in GitHub Desktop.
Save dineshvg/6e74d04643425f5562354ce2aa07ed0f to your computer and use it in GitHub Desktop.
A circle shape with a check mark in it. A layerlist of shapes.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- border circle -->
<item
android:width="50dp"
android:height="50dp"
tools:ignore="UnusedAttribute">
<shape android:shape="rectangle">
<solid android:color="@android:color/black"/>
<corners android:radius="40dp" />
<stroke
android:width="2dp"
android:color="@android:color/holo_green_dark" />
</shape>
</item>
<!-- left line -->
<item
android:width="20dp"
android:height="3dp"
android:top="29dp"
android:left="6.5dp"
tools:ignore="UnusedAttribute">
<rotate
android:fromDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@android:color/holo_green_dark"/>
</shape>
</rotate>
</item>
<!-- right line -->
<item
android:width="30dp"
android:height="3dp"
android:top="26dp"
android:left="17.5dp"
tools:ignore="UnusedAttribute">
<rotate
android:fromDegrees="-45">
<shape android:shape="rectangle">
<solid android:color="@android:color/holo_green_dark"/>
</shape>
</rotate>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment