Last active
June 20, 2017 07:16
-
-
Save andrisasuke/93706be6a2456fbbe3490b9a0902d6c5 to your computer and use it in GitHub Desktop.
sample-drawable-vector
This file contains hidden or 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
defaultConfig { | |
... | |
vectorDrawables.useSupportLibrary = true | |
} |
This file contains hidden or 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
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="fitXY" | |
app:srcCompat="@drawable/vector_sample"/> |
This file contains hidden or 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"?> | |
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="48dp" | |
android:height="48dp" | |
android:viewportHeight="10" | |
android:viewportWidth="10"> | |
<path | |
android:fillColor="#c6d443" | |
android:pathData="M 0,9 C 0,9 2,10 5,10 C 8,10 10,9 10,9 L 10,0 0,0 0,9" | |
android:strokeWidth="0.1"/> | |
</vector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment