Add initial support for android adaptive icons. TODO: Add backdrop shadow layer with vectors to adaptive icon

This commit is contained in:
mlim15 2020-01-09 02:53:56 -05:00
parent 0239248b23
commit d176ed4036
7 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<adaptive-icon
xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_padded" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="48.0"
android:viewportHeight="48.0">
<path
android:fillColor="#3F3F3F"
android:pathData="M0,0 l 0,-100 100,100 0,0 -100,100z" />
</vector>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_launcher_foreground"
android:insetLeft="20%"
android:insetTop="20%"
android:insetRight="20%"
android:insetBottom="20%" />