Skip to content

Instantly share code, notes, and snippets.

@DenysZP
Last active October 17, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DenysZP/ae896d3cf9b8bde41632d507e5f8da70 to your computer and use it in GitHub Desktop.
Save DenysZP/ae896d3cf9b8bde41632d507e5f8da70 to your computer and use it in GitHub Desktop.
An example of creating your own icon based on the standard.
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<!--standard icon-->
<path
android:fillAlpha="0.2"
android:fillColor="#FF000000"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z" />
<!--custom icon-->
<path
android:fillColor="#FF000000"
android:pathData="M12,4 L13.4,5.4 L6.8,12 L13.4,18.6 L12,20 L4,12z M6,11 L20,11 L20,13 L6,13z" />
</vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment