Created
February 15, 2022 22:43
-
-
Save aoriani/20fca2155f03f2524cec9892c2610b89 to your computer and use it in GitHub Desktop.
Droid using ShapeDrawable
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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:width="3dp" android:height="20dp" android:left="10dp"> | |
<rotate android:fromDegrees="-30"> | |
<shape android:shape="rectangle"> | |
<solid android:color="#3DDC84" /> | |
<size android:width="48dp" android:height="24dp" /> | |
<corners android:topLeftRadius="24dp" android:topRightRadius="24dp" /> | |
</shape> | |
</rotate> | |
</item> | |
<item android:width="3dp" android:height="20dp" android:left="34dp"> | |
<rotate android:fromDegrees="30"> | |
<shape android:shape="rectangle"> | |
<solid android:color="#3DDC84" /> | |
<size android:width="48dp" android:height="24dp" /> | |
<corners android:topLeftRadius="24dp" android:topRightRadius="24dp" /> | |
</shape> | |
</rotate> | |
</item> | |
<item | |
android:width="48dp" android:height="24dp" android:top="10dp"> | |
<shape android:shape="rectangle"> | |
<solid android:color="#3DDC84" /> | |
<size android:width="48dp" android:height="24dp" /> | |
<corners android:topLeftRadius="24dp" android:topRightRadius="24dp" /> | |
</shape> | |
</item> | |
<item android:width="5dp" android:height="5dp" android:left="10dp" android:top="20dp"> | |
<shape android:shape="oval"> | |
<size android:width="5dp" android:height="5dp" /> | |
<solid android:color="@color/white" /> | |
</shape> | |
</item> | |
<item android:width="5dp" android:height="5dp" android:left="32dp" android:top="20dp"> | |
<shape android:shape="oval"> | |
<size android:width="5dp" android:height="5dp" /> | |
<solid android:color="@color/white" /> | |
</shape> | |
</item> | |
</layer-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment