Browse Source

android: use larger adaptive launcher icon with full background

master
evgeny 3 days ago
parent
commit
c7c47d5ca3
  1. 4
      tools/chatgui-android/app/src/main/AndroidManifest.xml
  2. 16
      tools/chatgui-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_adaptive.xml

4
tools/chatgui-android/app/src/main/AndroidManifest.xml

@ -28,8 +28,8 @@
<application
android:name=".ChatApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_adaptive"
android:roundIcon="@mipmap/ic_launcher_adaptive"
android:label="vibechat"
android:supportsRtl="true"
android:localeConfig="@xml/locales_config"

16
tools/chatgui-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_adaptive.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Непрозрачный фон заполняет любую маску лаунчера, включая круг. -->
<background>
<shape android:shape="rectangle">
<gradient android:angle="315" android:startColor="#102B73"
android:centerColor="#15104B" android:endColor="#080D30" />
</shape>
</background>
<foreground>
<!-- Рисунок занимает 84 из 108 частей слоя; пузырь и волны остаются внутри круга 72. -->
<inset android:inset="11.111111%">
<bitmap android:src="@mipmap/ic_launcher" android:gravity="fill" android:filter="true" />
</inset>
</foreground>
</adaptive-icon>
Loading…
Cancel
Save