Add dynamic launcher icon

This commit is contained in:
Pavel Baksy 2024-02-12 01:35:32 +01:00
parent 5d842d91ee
commit dc7113ef35
29 changed files with 50 additions and 42 deletions

View File

@ -3,20 +3,7 @@
<component name="deploymentTargetDropDown"> <component name="deploymentTargetDropDown">
<value> <value>
<entry key="app"> <entry key="app">
<State> <State />
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="emulator-5554" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2024-02-11T21:32:49.549570838Z" />
</State>
</entry> </entry>
</value> </value>
</component> </component>

View File

@ -11,8 +11,8 @@ android {
applicationId = "cz.bugsy.passwordzebra" applicationId = "cz.bugsy.passwordzebra"
minSdk = 29 minSdk = 29
targetSdk = 34 targetSdk = 34
versionCode = 2 versionCode = 4
versionName = "1.2.0" versionName = "1.3.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -4,27 +4,27 @@
android:height="108dp" android:height="108dp"
android:viewportWidth="108" android:viewportWidth="108"
android:viewportHeight="108"> android:viewportHeight="108">
<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"> <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">
<aapt:attr name="android:fillColor"> <aapt:attr name="android:fillColor">
<gradient <gradient
android:endX="85.84757" android:endX="85.84757"
android:endY="92.4963" android:endY="92.4963"
android:startX="42.9492" android:startX="42.9492"
android:startY="49.59793" android:startY="49.59793"
android:type="linear"> android:type="linear">
<item <item
android:color="#44000000" android:color="#44000000"
android:offset="0.0" /> android:offset="0.0" />
<item <item
android:color="#00000000" android:color="#00000000"
android:offset="1.0" /> android:offset="1.0" />
</gradient> </gradient>
</aapt:attr> </aapt:attr>
</path> </path>
<path <path
android:fillColor="#FFFFFF" android:fillColor="#FFFFFF"
android:fillType="nonZero" android:fillType="nonZero"
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" 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"
android:strokeWidth="1" android:strokeWidth="1"
android:strokeColor="#00000000" /> android:strokeColor="#00000000" />
</vector> </vector>

View File

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="277.33dp"
android:viewportHeight="277.33" android:viewportWidth="277.33"
android:width="277.33dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#000000" android:pathData="M127.26,270.48C91.2,251.75 62.98,222.2 44.89,184.24 29.9,152.79 25.42,117.94 24.08,94.63c-1.07,-11.79 -0.28,-33.02 2.03,-54.85 1.44,-13.58 1.18,-13.21 9.49,-13.21 49.13,-0.01 104.49,-25.6 106.87,-25.6 5.14,0 55.23,25.6 106.88,25.6 7.19,0 8.31,0.25 8.34,1.87 0.02,1.03 0.73,7.63 1.58,14.67 3.68,30.52 1.38,75.64 -5.23,102.4 -12.46,50.46 -42.37,92.6 -83.86,118.17 -11.41,7.03 -23.74,12.5 -28.19,12.5 -2.52,0 -7.5,-1.92 -14.74,-5.68zM242.43,169.8c1.71,-2.22 7.17,-18.81 9.91,-30.17 3.05,-12.63 6.38,-38.22 6.38,-49.17l0.01,-9.17 -10.26,3.57C210.39,98.37 191.73,120.48 164.36,147.8c-19.61,19.77 -20.77,20.57 -38.96,27.03 -16.34,5 -29.9,15.43 -44.8,23.42 -7.92,4.21 -15.04,8.28 -15.82,9.04 -1.17,1.15 0.07,3.23 7.2,12.11 8.3,10.32 24.97,26.9 27.04,26.9C147.17,223.65 200.74,204 242.43,169.8ZM104.82,134.88c20.05,-12.76 45.33,-35.39 50.27,-45.01 3.89,-7.57 39.64,-39.83 54.04,-45.18 12.37,-5.11 25.18,-8.84 38.21,-11.9 3.42,-0.78 6.3,-1.9 6.4,-2.48 0.11,-0.6 -2.84,-1.17 -6.75,-1.31 -17.53,-0.61 -41.72,-4.11 -56.53,-8.18 -11.25,-3.09 -16.56,-4.67 -21.04,-6.25 -3.79,-1.34 -4.81,-1.37 -6.4,-0.16 -1.21,0.92 -44.84,18.64 -66.1,36.6 -20.1,20.2 -46.43,31.88 -69.82,47.56 1.9,20.87 3.8,30.98 6.03,40.53 2.33,10.01 9.13,30.4 10.13,30.4 1.6,0 32.65,-16.38 61.56,-34.62z"/>
</vector>

View File

@ -21,11 +21,11 @@
<ImageView <ImageView
android:id="@+id/iconImageView" android:id="@+id/iconImageView"
android:layout_width="wrap_content" android:layout_width="161dp"
android:layout_height="wrap_content" android:layout_height="126dp"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:contentDescription="@string/info_text" android:contentDescription="@string/info_text"
android:src="@drawable/icon_stift" android:src="@drawable/zebra_shield"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleTextView" app:layout_constraintTop_toBottomOf="@id/titleTextView"

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#3DDC84</color>
</resources>