Seeing your composable in shades of grey

<p>Recently, I needed to make a composable look disabled, my friendly design team wanted something quite complex turned to greyscale and made slightly transparent. And it had to be dynamic with changeable data, so I could not just use a drawable for when the composable was in disabled mode, and overlaying a grey box was just not going to cut it design wise.</p> <p>My first thought was, filters to the rescue! Couldn&rsquo;t I could apply a filter to the whole composable and be done with it? Unfortunately, there is no filter wrapper for a composable or filter modifier. But, it is a pretty easy thing to create yourself!</p> <p>If you just want to convert a simple image to black and white you can of course use a&nbsp;colour filter with a colour matrix&nbsp;and set the saturation to zero.</p> <p><a href="https://proandroiddev.com/seeing-your-composable-in-shades-of-grey-8e2e2e5d6ac">Website</a></p>