I want to change the color of my icon according to material You, like a google app, but the color does not change in any way. All unsuccessfully
according to the applied theme
I want to change the color of my icon according to material You, like a google app, but the color does not change in any way. All unsuccessfully
according to the applied theme
This process does not require Jetpack Compose at all. Android 13 has official support for themed icons. Just follow their steps here: https://developer.android.com/about/versions/13/features#themed-app-icons
To follow their example:
Create a monochrome version of your app icon
Add this to your ic_launcher.xml file, under the <adaptive-icon /> tagset:
<adaptive-icon>
<background android:drawable="..." />
<foreground android:drawable="..." />
<monochrome android:drawable="@drawable/myicon" />
</adaptive-icon>
Add your icon to your manifest:
<application
…
android:icon="@mipmap/ic_launcher"
…>
</application>
Note: If android:roundIcon and android:icon are both in your manifest, you must either remove the reference to android:roundIcon or supply the monochrome icon in the drawable defined by the android:roundIcon attribute.
All of that was pulled directly from the Google developer's example.