]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Add adaptive icon.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 5 Apr 2020 10:35:22 +0000 (12:35 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 5 Apr 2020 17:28:34 +0000 (19:28 +0200)
Big thanks to Michael Vogel for (re-)creating the
background image, and others on github for help
and advice - and sorry for not responding so long!
Fixes issue #87.

images/icon.xcf
res/drawable-anydpi-v26/icon.xml [new file with mode: 0644]
res/drawable-nodpi/icon_background.png [new file with mode: 0644]
res/drawable-nodpi/icon_foreground.png [new file with mode: 0644]

index 706d0a106022f15e8ff076f7afea5aeff5207f2c..76c8dc4bd797c4563ef005c831f967c8d8566406 100644 (file)
Binary files a/images/icon.xcf and b/images/icon.xcf differ
diff --git a/res/drawable-anydpi-v26/icon.xml b/res/drawable-anydpi-v26/icon.xml
new file mode 100644 (file)
index 0000000..ca95926
--- /dev/null
@@ -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="@drawable/icon_background" />
+    <foreground android:drawable="@drawable/icon_foreground" />
+</adaptive-icon>
diff --git a/res/drawable-nodpi/icon_background.png b/res/drawable-nodpi/icon_background.png
new file mode 100644 (file)
index 0000000..59f5c1c
Binary files /dev/null and b/res/drawable-nodpi/icon_background.png differ
diff --git a/res/drawable-nodpi/icon_foreground.png b/res/drawable-nodpi/icon_foreground.png
new file mode 100644 (file)
index 0000000..a73fc91
Binary files /dev/null and b/res/drawable-nodpi/icon_foreground.png differ