Skip to content

Commit

Permalink
Adaptive icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sudonatalie committed Apr 20, 2019
1 parent 54d62ab commit c0c358b
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="64"
android:viewportHeight="64">
<group android:translateX="16"
android:translateY="16">
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m3.7117,3.9369a0.5012,0.5016 0,0 0,-0.0471 0,0.5012 0.5016,0 0,0 -0.0231,0 0.5012,0.5016 0,0 0,-0.018 0,0.5012 0.5016,0 0,0 -0.01,0 0.5012,0.5016 0,0 0,-0.0471 0.012,0.5012 0.5016,0 0,0 -0.01,0 0.5012,0.5016 0,0 0,-0.0411 0.017,0.5012 0.5016,0 0,0 -0.0391,0.02 0.5012,0.5016 0,0 0,-0.01 0,0.5012 0.5016,0 0,0 -0.0431,0.027 0.5012,0.5016 0,0 0,-0.0391 0.029,0.5012 0.5016,0 0,0 -0.0331,0.033 0.5012,0.5016 0,0 0,-0.01 0.01,0.5012 0.5016,0 0,0 -0.1037,0.1646 0.5012,0.5016 0,0 0,-0.0351 0.1822,0.5012 0.5016,0 0,0 0,0.01l-0.1898,2.1785c-0.0872,1.0291 0.7093,1.9285 1.7463,2.0219l3.152,0.2802c1.0371,0.093 1.978,-0.6519 2.0655,-1.681l0.1488,-1.728 15.3978,1.3871a0.5014,0.5018 0,1 0,0.0902 -0.9992l-21.8585,-1.9689a0.5012,0.5016 0,0 0,-0.01 0,0.5012 0.5016,0 0,0 -0.0511,0z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952695"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m25.5878,5.9333a0.5012,0.5016 0,0 0,-0.0491 0.01l0,0a0.5012,0.5016 0,0 0,-0.1331 0.039l-14.693,5.411a0.5012,0.5016 0,0 0,-0.0551 0.016l-8.3009,3.0582a0.5012,0.5016 0,0 0,-0.0211 0.01,0.5012 0.5016,0 0,0 -0.0231,0.012 0.5012,0.5016 0,0 0,-0.1998 0.7817l1.0964,3.0346c0.4784,1.3302 1.9673,2.0076 3.3008,1.5165l4.3795,-1.6144c1.3336,-0.4912 2.0408,-1.971 1.5623,-3.3011l-0.9789,-2.7232 14.2819,-5.2584a0.5012,0.5016 0,0 0,-0.1645 -0.9834z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952695"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m25.5682,5.9294a0.5012,0.5016 0,0 0,-0.3484 0.1567l-11.2239,11.1141a0.5012,0.5016 0,0 0,-0.0531 0.045l-7.7548,7.6778a0.5012,0.5016 0,0 0,-0.0291 0.033,0.5012 0.5016,0 0,0 -0.016,0.019 0.5012,0.5016 0,0 0,-0.016 0.02,0.5012 0.5016,0 0,0 0.18,0.7601l2.8192,2.7821c1.2964,1.2834 3.4023,1.2834 4.6986,0l3.7589,-3.7165c1.2964,-1.2835 1.2964,-3.3891 0,-4.6725l-2.5725,-2.5528 10.9106,-10.8046a0.5012,0.5016 0,0 0,-0.3544 -0.8678z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952743"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="m25.2031,2.5987c-0.7903,0.1923 -1.5137,0.6606 -2.0137,1.3653a0.5002,0.5002 0,0 0,0.8164 0.5781c0.7161,-1.0094 2.0552,-1.3351 3.1543,-0.7676 1.0991,0.5675 1.6102,1.8485 1.2031,3.0176 -0.4071,1.1691 -1.603,1.8561 -2.8164,1.6172a0.5,0.5 0,1 0,-0.1934 0.9805c1.695,0.3337 3.3848,-0.6356 3.9531,-2.2676 0.5683,-1.6321 -0.1524,-3.4437 -1.6875,-4.2364 -0.7676,-0.3963 -1.6257,-0.4794 -2.416,-0.2871z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="0.99999994"/>
</group>
</vector>
23 changes: 23 additions & 0 deletions app/src/main/res/drawable/ic_measuring_cups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<vector android:height="24dp" android:viewportHeight="32"
android:viewportWidth="32" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m3.7117,3.9369a0.5012,0.5016 0,0 0,-0.0471 0,0.5012 0.5016,0 0,0 -0.0231,0 0.5012,0.5016 0,0 0,-0.018 0,0.5012 0.5016,0 0,0 -0.01,0 0.5012,0.5016 0,0 0,-0.0471 0.012,0.5012 0.5016,0 0,0 -0.01,0 0.5012,0.5016 0,0 0,-0.0411 0.017,0.5012 0.5016,0 0,0 -0.0391,0.02 0.5012,0.5016 0,0 0,-0.01 0,0.5012 0.5016,0 0,0 -0.0431,0.027 0.5012,0.5016 0,0 0,-0.0391 0.029,0.5012 0.5016,0 0,0 -0.0331,0.033 0.5012,0.5016 0,0 0,-0.01 0.01,0.5012 0.5016,0 0,0 -0.1037,0.1646 0.5012,0.5016 0,0 0,-0.0351 0.1822,0.5012 0.5016,0 0,0 0,0.01l-0.1898,2.1785c-0.0872,1.0291 0.7093,1.9285 1.7463,2.0219l3.152,0.2802c1.0371,0.093 1.978,-0.6519 2.0655,-1.681l0.1488,-1.728 15.3978,1.3871a0.5014,0.5018 0,1 0,0.0902 -0.9992l-21.8585,-1.9689a0.5012,0.5016 0,0 0,-0.01 0,0.5012 0.5016,0 0,0 -0.0511,0z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952695"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m25.5878,5.9333a0.5012,0.5016 0,0 0,-0.0491 0.01l0,0a0.5012,0.5016 0,0 0,-0.1331 0.039l-14.693,5.411a0.5012,0.5016 0,0 0,-0.0551 0.016l-8.3009,3.0582a0.5012,0.5016 0,0 0,-0.0211 0.01,0.5012 0.5016,0 0,0 -0.0231,0.012 0.5012,0.5016 0,0 0,-0.1998 0.7817l1.0964,3.0346c0.4784,1.3302 1.9673,2.0076 3.3008,1.5165l4.3795,-1.6144c1.3336,-0.4912 2.0408,-1.971 1.5623,-3.3011l-0.9789,-2.7232 14.2819,-5.2584a0.5012,0.5016 0,0 0,-0.1645 -0.9834z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952695"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="m25.5682,5.9294a0.5012,0.5016 0,0 0,-0.3484 0.1567l-11.2239,11.1141a0.5012,0.5016 0,0 0,-0.0531 0.045l-7.7548,7.6778a0.5012,0.5016 0,0 0,-0.0291 0.033,0.5012 0.5016,0 0,0 -0.016,0.019 0.5012,0.5016 0,0 0,-0.016 0.02,0.5012 0.5016,0 0,0 0.18,0.7601l2.8192,2.7821c1.2964,1.2834 3.4023,1.2834 4.6986,0l3.7589,-3.7165c1.2964,-1.2835 1.2964,-3.3891 0,-4.6725l-2.5725,-2.5528 10.9106,-10.8046a0.5012,0.5016 0,0 0,-0.3544 -0.8678z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="3.77952743"/>
<path android:fillAlpha="1" android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="m25.2031,2.5987c-0.7903,0.1923 -1.5137,0.6606 -2.0137,1.3653a0.5002,0.5002 0,0 0,0.8164 0.5781c0.7161,-1.0094 2.0552,-1.3351 3.1543,-0.7676 1.0991,0.5675 1.6102,1.8485 1.2031,3.0176 -0.4071,1.1691 -1.603,1.8561 -2.8164,1.6172a0.5,0.5 0,1 0,-0.1934 0.9805c1.695,0.3337 3.3848,-0.6356 3.9531,-2.2676 0.5683,-1.6321 -0.1524,-3.4437 -1.6875,-4.2364 -0.7676,-0.3963 -1.6257,-0.4794 -2.416,-0.2871z"
android:strokeAlpha="1" android:strokeColor="#00000000"
android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="0.99999994"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">@color/primary</color>
</resources>
Binary file added images/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/web_hi_res_512.png
Binary file not shown.

0 comments on commit c0c358b

Please sign in to comment.