Skip to content

Instantly share code, notes, and snippets.

@baggednismo
Created January 28, 2020 16:23
Show Gist options
  • Save baggednismo/4d8ef519750dc2b8209174b4013eb574 to your computer and use it in GitHub Desktop.
Save baggednismo/4d8ef519750dc2b8209174b4013eb574 to your computer and use it in GitHub Desktop.
Example camera background drawable for android
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
android:viewportWidth="640"
android:viewportHeight="480"
android:width="640dp"
android:height="480dp">
<path
android:pathData="M2.50002 0.499998H639.5V477.5H2.50002V0.499998Z"
android:strokeColor="#000000"
android:strokeWidth="20" />
<group
android:rotation="-90"
android:pivotX="593.5"
android:pivotY="430.5">
<path
android:pathData="M559.5 395.4536L559.5 465.5464"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
<group
android:rotation="90"
android:pivotX="593.5"
android:pivotY="463.454">
<path
android:pathData="M593.5 428.4072L593.5 498.5"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
</group>
</group>
<path
android:pathData="M15.5 396.5L15.5 466.5928"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
<group
android:rotation="90"
android:pivotX="49.5"
android:pivotY="464.5">
<path
android:pathData="M49.5 429.4536L49.5 499.5464"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
</group>
<group
android:rotation="-180"
android:pivotX="592.5"
android:pivotY="46.5">
<path
android:pathData="M558.4996 11.45363L558.4996 81.54642"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
<group
android:rotation="90"
android:pivotX="592.5"
android:pivotY="79.454">
<path
android:pathData="M592.4996 44.40723L592.4996 114.5"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
</group>
</group>
<group
android:rotation="90"
android:pivotX="48.5"
android:pivotY="47.5">
<path
android:pathData="M14.49927 12.4536L14.49927 82.54639"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
<group
android:rotation="90"
android:pivotX="48.4996"
android:pivotY="80.454">
<path
android:pathData="M48.49927 45.4072L48.49927 115.5"
android:strokeColor="#FFFFFF"
android:strokeWidth="5"
android:strokeLineCap="null"
android:strokeLineJoin="null" />
</group>
</group>
</vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment