Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement vector splash #25

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions app/src/main/res/drawable/background_splash.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<!-- The background color, preferably the same as your normal theme -->
<item android:drawable="@color/colorPrimary"/>
<item android:drawable="@color/colorPrimary" />
<!-- Your product logo - 144dp color version of your app icon -->
<item>
<bitmap
android:src="@drawable/icon"
android:gravity="center"/>
</item>
<item
android:drawable="@drawable/icon_vector"
android:gravity="center"
android:width="144dp"
android:height="144dp" />
</layer-list>
61 changes: 61 additions & 0 deletions app/src/main/res/drawable/icon_vector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">

<path
android:fillColor="#282F3F"
android:strokeWidth="1"
android:pathData="M255.811,2.87346 C395.713,2.87346,509.127,116.287,509.127,256.189
C509.127,396.091,395.713,509.505,255.811,509.505
C115.909,509.505,2.49548,396.091,2.49548,256.189
C2.49548,116.287,115.909,2.87346,255.811,2.87346 Z" />
<path
android:fillColor="#1DE9B6"
android:strokeWidth="1"
android:pathData="M432.407,147.435 L349.028,76.7442 L325.465,103.933 L408.844,174.624
L432.407,147.435 L432.407,147.435 Z M251.149,116.621
C160.52,116.621,88.0162,189.124,88.0162,279.754
C88.0162,370.383,160.52,442.886,251.149,442.886
C341.778,442.886,414.281,370.383,414.281,279.754
C414.281,189.124,341.778,116.621,251.149,116.621 L251.149,116.621
L251.149,116.621 Z M251.149,406.634
C180.458,406.634,124.268,350.444,124.268,279.754
C124.268,209.063,180.458,152.873,251.149,152.873
C321.84,152.873,378.03,209.063,378.03,279.754
C378.03,350.444,321.84,406.634,251.149,406.634 L251.149,406.634 L251.149,406.634
Z" />
<path
android:fillColor="#1DE9B6"
android:strokeWidth="1"
android:pathData="M176.833,105.746 L153.269,78.5568 L69.8904,147.435 L93.454,174.624
L176.833,105.746 L176.833,105.746 Z" />
<path
android:fillColor="#282F3F"
android:strokeWidth="1"
android:pathData="M142.505,51.5681 C85.8671,51.5681,39.7935,97.6417,39.7935,154.28
C39.7935,231.314,142.505,345.031,142.505,345.031
C142.505,345.031,245.217,231.314,245.217,154.28
C245.217,97.6417,199.144,51.5681,142.505,51.5681 L142.505,51.5681 Z" />
<path
android:fillColor="#1DE9B6"
android:strokeWidth="1"
android:pathData="M260.212,189.124 L233.023,189.124 L233.023,297.879 L318.214,350.444
L332.715,328.693 L260.212,285.191 L260.212,189.124 L260.212,189.124 Z" />
<path
android:fillColor="#1DE9B6"
android:strokeWidth="1"
android:pathData="M142.661,78.5055 C96.2204,78.5055,58.4425,116.283,58.4425,162.724
C58.4425,225.888,142.661,319.129,142.661,319.129
C142.661,319.129,226.879,225.888,226.879,162.724
C226.879,116.283,189.101,78.5055,142.661,78.5055 L142.661,78.5055 Z" />
<path
android:fillColor="#282F3F"
android:strokeWidth="1"
android:pathData="M142.661,198.224 C162.267,198.224,178.161,182.33,178.161,162.724
C178.161,143.118,162.267,127.224,142.661,127.224
C123.055,127.224,107.161,143.118,107.161,162.724
C107.161,182.33,123.055,198.224,142.661,198.224 L142.661,198.224 Z" />
</vector>