ProMobile.Dev
banner
promobiledev.bsky.social
ProMobile.Dev
@promobiledev.bsky.social
News, articles and tutorials in the mobile development sphere.

https://promobile.dev/
You are not limited to Material icons. Any ImageVector or Painter can be used.

Here the icon is loaded from a drawable resource and displayed at 32 dp size.
October 18, 2025 at 6:43 PM
If you want the icon to adapt to the current theme, use a color from MaterialTheme:
October 18, 2025 at 6:42 PM
You can style the icon using the tint parameter:
Changing color
October 18, 2025 at 6:42 PM
To display a Material icon, you can use the Icons.Default collection.

The contentDescription parameter is important for accessibility. If the icon is purely decorative you can pass null.
October 18, 2025 at 6:41 PM