Skip to content

Commit ab2a66e

Browse files
committed
feat(sampleapp): add launcher icon
Signed-off-by: Nicklas Lundin <[email protected]>
1 parent 0cddbe9 commit ab2a66e

File tree

16 files changed

+34
-33
lines changed

16 files changed

+34
-33
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="112dp"
3+
android:height="71dp"
4+
android:viewportWidth="112"
5+
android:viewportHeight="71">
6+
<path
7+
android:pathData="M75.95,0H36.05C31.34,-0.06 26.66,0.81 22.29,2.57C17.92,4.33 13.94,6.93 10.59,10.23C7.23,13.54 4.57,17.47 2.75,21.81C0.94,26.14 0,30.8 0,35.5C0,40.2 0.94,44.86 2.75,49.19C4.57,53.53 7.23,57.46 10.59,60.77C13.94,64.07 17.92,66.67 22.29,68.43C26.66,70.19 31.34,71.06 36.05,71H75.95C80.66,71.06 85.34,70.19 89.71,68.43C94.08,66.67 98.06,64.07 101.41,60.77C104.77,57.46 107.43,53.53 109.25,49.19C111.06,44.86 112,40.2 112,35.5C112,30.8 111.06,26.14 109.25,21.81C107.43,17.47 104.77,13.54 101.41,10.23C98.06,6.93 94.08,4.33 89.71,2.57C85.34,0.81 80.66,-0.06 75.95,0ZM76.11,61.65C70.93,61.65 65.86,60.12 61.55,57.24C57.24,54.37 53.88,50.29 51.89,45.51C49.91,40.73 49.39,35.47 50.4,30.4C51.41,25.33 53.9,20.67 57.57,17.01C61.23,13.35 65.9,10.86 70.99,9.85C76.07,8.84 81.34,9.36 86.13,11.34C90.92,13.31 95.02,16.67 97.9,20.97C100.78,25.27 102.32,30.32 102.32,35.5C102.32,42.43 99.56,49.08 94.64,53.99C89.73,58.89 83.06,61.65 76.11,61.65Z"
8+
android:fillColor="#231F20"/>
9+
<path
10+
android:pathData="M76.5,35.5m-26.5,0a26.5,26.5 0,1 1,53 0a26.5,26.5 0,1 1,-53 0"
11+
android:fillColor="#F5F5F5"/>
12+
</vector>
Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
xmlns:aapt="http://schemas.android.com/aapt"
32
android:width="108dp"
43
android:height="108dp"
5-
android:viewportWidth="108"
6-
android:viewportHeight="108">
7-
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
8-
<aapt:attr name="android:fillColor">
9-
<gradient
10-
android:endX="85.84757"
11-
android:endY="92.4963"
12-
android:startX="42.9492"
13-
android:startY="49.59793"
14-
android:type="linear">
15-
<item
16-
android:color="#44000000"
17-
android:offset="0.0" />
18-
<item
19-
android:color="#00000000"
20-
android:offset="1.0" />
21-
</gradient>
22-
</aapt:attr>
23-
</path>
4+
android:viewportWidth="112"
5+
android:viewportHeight="71">
6+
<group android:scaleX="0.52"
7+
android:scaleY="0.32964286"
8+
android:translateX="26.88"
9+
android:translateY="23.797678">
2410
<path
25-
android:fillColor="#FFFFFF"
26-
android:fillType="nonZero"
27-
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
28-
android:strokeWidth="1"
29-
android:strokeColor="#00000000" />
30-
</vector>
11+
android:pathData="M75.95,0H36.05C31.34,-0.06 26.66,0.81 22.29,2.57C17.92,4.33 13.94,6.93 10.59,10.23C7.23,13.54 4.57,17.47 2.75,21.81C0.94,26.14 0,30.8 0,35.5C0,40.2 0.94,44.86 2.75,49.19C4.57,53.53 7.23,57.46 10.59,60.77C13.94,64.07 17.92,66.67 22.29,68.43C26.66,70.19 31.34,71.06 36.05,71H75.95C80.66,71.06 85.34,70.19 89.71,68.43C94.08,66.67 98.06,64.07 101.41,60.77C104.77,57.46 107.43,53.53 109.25,49.19C111.06,44.86 112,40.2 112,35.5C112,30.8 111.06,26.14 109.25,21.81C107.43,17.47 104.77,13.54 101.41,10.23C98.06,6.93 94.08,4.33 89.71,2.57C85.34,0.81 80.66,-0.06 75.95,0ZM76.11,61.65C70.93,61.65 65.86,60.12 61.55,57.24C57.24,54.37 53.88,50.29 51.89,45.51C49.91,40.73 49.39,35.47 50.4,30.4C51.41,25.33 53.9,20.67 57.57,17.01C61.23,13.35 65.9,10.86 70.99,9.85C76.07,8.84 81.34,9.36 86.13,11.34C90.92,13.31 95.02,16.67 97.9,20.97C100.78,25.27 102.32,30.32 102.32,35.5C102.32,42.43 99.56,49.08 94.64,53.99C89.73,58.89 83.06,61.65 76.11,61.65Z"
12+
android:fillColor="#231F20"/>
13+
<path
14+
android:pathData="M76.5,35.5m-26.5,0a26.5,26.5 0,1 1,53 0a26.5,26.5 0,1 1,-53 0"
15+
android:fillColor="#F5F5F5"/>
16+
</group>
17+
</vector>

sampleapp/src/main/res/mipmap-anydpi/ic_launcher.xml renamed to sampleapp/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
4-
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
65
</adaptive-icon>

sampleapp/src/main/res/mipmap-anydpi/ic_launcher_round.xml renamed to sampleapp/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
4-
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
65
</adaptive-icon>
-310 Bytes
Loading
-746 Bytes
Loading
-178 Bytes
Loading
-362 Bytes
Loading
-748 Bytes
Loading
-870 Bytes
Loading

0 commit comments

Comments
 (0)