https://kotlinlang.org logo
#compose
Title
# compose
k

kv

04/01/2024, 5:20 PM
do we have a way to convert a compose view into a drawable? I know there's a way of doing so with regular android views via
getDrawableCache()
. Is there something that compose has available if i need to pass a view as a drawable in Android?
r

romainguy

04/01/2024, 5:23 PM
Render the Composable into a
Bitmap
, and create a
BitmapDrawable
k

kv

04/01/2024, 6:53 PM
thank you! i'll take a look 👍🏾
3 Views