Skip to content

Instantly share code, notes, and snippets.

@nickbutcher
Created December 3, 2018 16:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nickbutcher/b9c726e956d25b354ee1d19dcb105a88 to your computer and use it in GitHub Desktop.
Save nickbutcher/b9c726e956d25b354ee1d19dcb105a88 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:drawable="@drawable/jetpack_droid">
<target android:name="droid">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="translateY"
android:valueFrom="0"
android:valueTo="-30"
android:duration="1100"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
<target android:name="droid">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="translateX"
android:valueFrom="0"
android:valueTo="10"
android:duration="2200"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
<target android:name="shadow">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="scaleX"
android:valueFrom="0.8"
android:valueTo="0.7"
android:duration="1100"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
<target android:name="shadow">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="scaleY"
android:valueFrom="0.05"
android:valueTo="0.03"
android:duration="1100"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
<target android:name="thrusters">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="scaleY"
android:valueFrom="1"
android:valueTo="0.95"
android:duration="250"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
<target android:name="thrusters">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="scaleX"
android:valueFrom="1"
android:valueTo="0.97"
android:duration="250"
android:repeatCount="-1"
android:repeatMode="reverse"
android:interpolator="@android:interpolator/accelerate_decelerate" />
</aapt:attr>
</target>
</animated-vector>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied. See the License for the specific language governing permissions and limitations under
the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="350dp"
android:height="350dp"
android:viewportWidth="350"
android:viewportHeight="350">
<group
android:translateY="15">
<group
android:name="shadow"
android:pivotX="166"
android:pivotY="319"
android:scaleX="0.8"
android:scaleY="0.05">
<path android:pathData="M166,319m-153,0a153,153 0,1 1,306 0a153,153 0,1 1,-306 0">
<aapt:attr name="android:fillColor">
<gradient
android:centerX="166"
android:centerY="319"
android:gradientRadius="153"
android:type="radial">
<item
android:color="#4C000000"
android:offset="0" />
<item
android:color="#4C000000"
android:offset="0.6" />
<item
android:color="#00000000"
android:offset="1" />
</gradient>
</aapt:attr>
</path>
</group>
<group android:name="droid">
<group
android:name="thrusters"
android:pivotX="57"
android:pivotY="245">
<path
android:fillColor="#E37400"
android:fillType="evenOdd"
android:pathData="M60.81,235.026C30.856,227.056 36.27,276.83 44.335,291.491L44.333,291.478C44.565,291.983 45.011,292.358 45.548,292.501C46.085,292.644 46.658,292.54 47.11,292.217L47.102,292.227C60.735,283.898 92.098,243.353 60.81,235.028"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#FBBC04"
android:fillType="evenOdd"
android:pathData="M60.177,237.718C41.112,232.645 45.472,260.884 50.841,269.322L50.839,269.316C51.176,269.927 52.012,270.149 52.607,269.786L52.603,269.792C61.053,265.342 80.091,243.017 60.177,237.718"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</group>
<path
android:fillColor="#757575"
android:fillType="evenOdd"
android:pathData="M40.9,206.883L41.598,219.723C41.714,221.853 43.41,224.019 45.366,224.54L51.886,226.275L72.947,231.88L79.467,233.614C81.425,234.135 83.972,233.097 85.127,231.306L92.1,220.508L40.9,206.883Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillAlpha="0.2"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M62.417,229.077L72.947,231.88L79.467,233.615C81.425,234.135 83.971,233.097 85.127,231.306L92.099,220.508L66.49,213.693"
android:strokeWidth="1"
android:strokeAlpha="0.2"
android:strokeColor="#00000000" />
<path
android:fillColor="#F3F3F3"
android:fillType="evenOdd"
android:pathData="M40.89,206.881l22.89,-102.896l60.096,15.991l-31.785,100.53"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#5BC348"
android:fillType="evenOdd"
android:pathData="M126.835,108.826L126.833,108.834C126.835,108.826 126.827,108.823 126.827,108.823L126.835,108.826Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#C6C6C5"
android:fillType="evenOdd"
android:pathData="M126.827,108.823C126.827,108.823 126.835,108.826 126.833,108.833C125.242,110.149 124.103,111.93 123.577,113.927C123.044,115.926 123.148,118.041 123.876,119.977L63.78,103.985C65.369,102.663 66.508,100.88 67.04,98.883C67.568,96.887 67.463,94.776 66.738,92.843C66.74,92.833 66.75,92.836 66.75,92.836L126.827,108.823Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#F3F3F3"
android:fillType="evenOdd"
android:pathData="M126.827,108.823L66.75,92.836C72.948,69.875 87.438,55.899 105.26,51.687C106.308,51.432 107.423,51.395 108.54,51.531C108.955,51.583 109.382,51.659 109.809,51.772C110.227,51.884 110.635,52.032 111.03,52.193C112.057,52.628 113.009,53.205 113.792,53.949C127.184,66.466 132.832,85.8 126.827,108.823"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#5BC348"
android:fillType="evenOdd"
android:pathData="M66.75,92.836C66.75,92.836 66.74,92.834 66.738,92.843L66.74,92.834L66.75,92.836Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#C6C6C5"
android:fillType="evenOdd"
android:pathData="M93.828,111.98l30.048,7.996l-31.786,100.53l-25.6,-6.813"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#D3DDE2"
android:fillType="evenOdd"
android:pathData="M126.835,108.826L126.833,108.834C126.835,108.826 126.827,108.823 126.827,108.823L126.835,108.826Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillAlpha="0.2"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M96.786,100.839L96.787,100.829L126.827,108.823C126.827,108.823 126.835,108.826 126.832,108.834C125.242,110.151 124.103,111.932 123.576,113.928C123.043,115.926 123.148,118.041 123.876,119.976L93.828,111.98"
android:strokeWidth="1"
android:strokeAlpha="0.2"
android:strokeColor="#00000000" />
<path
android:fillColor="#C6C6C5"
android:fillType="evenOdd"
android:pathData="M109.808,51.772C110.226,51.884 110.635,52.03 111.03,52.194C112.057,52.629 113.009,53.205 113.793,53.948C127.183,66.466 132.833,85.8 126.826,108.823L96.786,100.829"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#1967D2"
android:fillType="evenOdd"
android:pathData="M70.431,217.663C70.417,217.702 70.404,217.743 70.389,217.781C70.374,217.821 70.362,217.861 70.346,217.899C69.474,220.334 66.882,221.695 64.382,221.032C61.88,220.364 60.306,217.892 60.759,215.342C60.765,215.302 60.773,215.261 60.781,215.219C60.787,215.178 60.796,215.137 60.803,215.096L74.11,141.16C74.17,140.77 74.25,140.379 74.355,139.988C75.958,133.946 82.15,130.348 88.186,131.955C94.221,133.561 97.812,139.761 96.209,145.804C96.105,146.197 95.979,146.577 95.839,146.948L70.43,217.663L70.431,217.663Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillAlpha="0.2"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M88.336,131.995C94.371,133.601 97.963,139.801 96.359,145.845C96.255,146.237 96.129,146.617 95.989,146.988L70.582,217.703C70.567,217.743 70.555,217.783 70.539,217.821C70.525,217.861 70.512,217.901 70.497,217.939C69.624,220.374 67.033,221.735 64.533,221.072"
android:strokeWidth="1"
android:strokeAlpha="0.2"
android:strokeColor="#00000000" />
<path
android:fillColor="#78C257"
android:fillType="evenOdd"
android:pathData="M321.356,162.888C328.167,156.018 328.127,144.941 321.266,138.121C314.404,131.301 303.342,131.341 296.531,138.211L241.023,194.196C234.212,201.066 234.253,212.143 241.113,218.964C247.974,225.784 259.037,225.744 265.848,218.874L321.356,162.888Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#78C257"
android:fillType="evenOdd"
android:pathData="M235.15,248.641C241.96,241.771 241.92,230.694 235.06,223.874C228.198,217.054 217.136,217.094 210.324,223.964L158.589,276.144C151.778,283.014 151.817,294.091 158.679,300.911C165.54,307.731 176.602,307.691 183.414,300.821L235.15,248.641Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#78C257"
android:fillType="evenOdd"
android:pathData="M178.088,241.059C184.769,234.32 184.898,223.621 178.374,217.136C171.85,210.651 161.165,210.856 154.484,217.596L103.735,268.78C97.055,275.52 96.926,286.218 103.451,292.703C109.975,299.188 120.659,298.983 127.341,292.243L178.088,241.059Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M134.09,101.65l-4.523,15.941l154.288,35.606l2.851,-11.096z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#78C257"
android:fillType="nonZero"
android:pathData="M132.413,110.287L131.563,110.062L101.986,221.615C99.516,230.929 105.101,240.562 114.403,243.035L233.543,274.705C242.845,277.178 252.465,271.586 254.936,262.272L284.512,150.719L132.412,110.287L132.413,110.287ZM133.366,104.122L286.016,144.7L288.182,136.534C288.547,134.128 288.805,131.784 288.935,129.405C289.985,108.469 280.646,87.958 264.243,73.173L281.64,54.715C282.714,53.565 282.664,51.766 281.528,50.678C280.381,49.604 278.583,49.655 277.498,50.791L259.905,69.469C250.989,62.456 240.375,57.039 228.483,53.878C216.506,50.694 204.51,50.146 193.24,51.839L187.197,26.787C186.824,25.277 185.262,24.315 183.753,24.688C182.243,25.06 181.283,26.628 181.656,28.137L187.629,52.943C167.085,57.543 149.522,69.765 139.804,87.213C137.247,91.817 135.275,96.722 133.932,101.814C133.718,102.592 133.525,103.376 133.354,104.164L133.366,104.122Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M257.349,92.738C261.299,93.788 263.669,97.878 262.621,101.834C261.572,105.788 257.487,108.162 253.537,107.113C249.587,106.063 247.217,101.973 248.264,98.018C249.314,94.062 253.398,91.688 257.349,92.738M186.188,73.802C190.138,74.852 192.51,78.942 191.46,82.897C190.411,86.853 186.326,89.227 182.377,88.177C178.427,87.127 176.055,83.037 177.104,79.082C178.154,75.127 182.238,72.752 186.188,73.802"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillAlpha="0.1"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M260.448,241.504l-148.322,-39.469l4.888,-18.413l148.32,39.469z"
android:strokeWidth="1"
android:strokeAlpha="0.1"
android:strokeColor="#00000000" />
<path
android:fillColor="#F3F3F3"
android:fillType="evenOdd"
android:pathData="M267.21,238.535l-153.901,-40.953l4.887,-18.412l153.9,40.953z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
<path
android:fillAlpha="0.1"
android:fillColor="#000000"
android:fillType="evenOdd"
android:pathData="M145.288,169.037L115.443,217.977C100.888,236.204 82.688,209.345 82.688,209.345L118.099,161.871L145.289,169.037L145.288,169.037Z"
android:strokeWidth="1"
android:strokeAlpha="0.1"
android:strokeColor="#00000000" />
<path
android:fillColor="#78C257"
android:fillType="evenOdd"
android:pathData="M160.946,152.849C167.719,145.98 167.68,134.906 160.856,128.087C157.594,124.815 153.159,122.983 148.538,123C143.918,123.017 139.496,124.881 136.258,128.177L81.055,184.151C74.28,191.019 74.321,202.093 81.143,208.912C84.405,212.185 88.841,214.017 93.462,214C98.083,213.983 102.505,212.119 105.743,208.822L160.946,152.849Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</group>
</group>
</vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment