How to Handle Disabled State for Multicolour Icons in Android (Jetpack Compose Guide)

https://hackernoon.imgix.net/images/6WbO18ySKKbatYbleCAgy9Tmyol2-hui3qag.png

Handling the disabled state in UI is straightforward — until you deal with multicolour icons.

In modern Android development, especially when working with Jetpack Compose and scalable design systems, icons can be either single-colour or multicolour. While single-colour icons are easy to manage, multicolour ones introduce complexity — particularly when representing states like disabled.

In this article, we’ll walk through how we solved this problem at inDrive and how you can apply the same approach in your Android apps.

The Problem: Disabled State for Icons

At inDrive, we categorize icons into two groups:

  • Single-colour icons — use one color
  • Multicolour icons — use multiple colors

Icons can be either vector (VectorDrawable) or raster (Bitmap) images.

For single-colour icons, handling states is simple: we apply a tint.

ColorFilter.tint(tintColor)

For example, a disabled icon just gets a muted tint.

But this approach breaks completely for multicolour...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://www.eu-startups.com/wp-content/uploads/2026/05/Untitled-design-2026-05-19T165310.544.jpg

Berlin-based bunch, an AI-native platform for managers and institutional investors to manage the entire fund lifecycle, raised a €30.1M Series B led by Portage

Sponsor Posts Niantic Spatial: World models need real-world data — Scaniverse is the gateway to spatial services — self-serve and built for AI and robotics. Large-area 3D reconstruction from 360° cameras and precise localization, anywhere machines operate. Protecting your Cloud Applications Data — Backing up Office 365, Google Workspace, Dropbox & Salesforce data