Xtraball / Siberian

Siberian Single App Edition (SAE), free and open-source app builder.
https://www.siberiancms.com
Open Software License 3.0
167 stars 151 forks source link

[Android] support for rounded/adaptive icons #840

Open Slicit opened 6 months ago

Slicit commented 6 months ago

Add support for rounded/adaptive icons.

Resources: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive?hl=fr

https://airnativeextensions.github.io/tutorials/android-adaptive-icons#:~:text=Additionally%20if%20you%20want%20to,%2Ficon_round%22%20...%20%3E

Example 1: Using a Color Resource Define the color in res/values/colors.xml:

<resources>
    <color name="icon_background">#FF0000</color> <!-- Red color -->
</resources>

Specify the background color in AndroidManifest.xml:

<application
    android:icon="@mipmap/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:iconBackground="@color/icon_background"
    ... >
    ...
</application>