Skip to content

Instantly share code, notes, and snippets.

@andrisasuke
Last active June 20, 2017 07:16
Show Gist options
  • Save andrisasuke/93706be6a2456fbbe3490b9a0902d6c5 to your computer and use it in GitHub Desktop.
Save andrisasuke/93706be6a2456fbbe3490b9a0902d6c5 to your computer and use it in GitHub Desktop.
sample-drawable-vector
defaultConfig {
...
vectorDrawables.useSupportLibrary = true
}
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
app:srcCompat="@drawable/vector_sample"/>
<?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