Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] support for rounded/adaptive icons #840

Open
Slicit opened this issue May 19, 2024 · 0 comments
Open

[Android] support for rounded/adaptive icons #840

Slicit opened this issue May 19, 2024 · 0 comments

Comments

@Slicit
Copy link
Collaborator

Slicit commented May 19, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant