# compose


01/14/2020, 3:15 PM
Have another question, is there a way to show the widget bounds in a similar fashion to “Show layout bounds”?

Adam Powell

01/14/2020, 3:26 PM
Not yet but it's coming. Depending on how much we want to make the rest of the framework team sad by using hidden API surface it might even just work with the same option on 🙂
❤️ 2


01/14/2020, 3:31 PM
ahah 🙂 well I’m asking because I can’t figure out for the life of me how to emulate the same thing. I have a
Draw { }
block and in there doing a
but can’t figure out how to get the current drawing bounds — I have the pixel size of the bounds but not the x,y I need to create the rect. And the clipBounds from the AndroidCanvas aren’t exposed, you can only set the clip but not read it
My current task: make the appbar navigation icon in JetNews be 48x48dp instead of the 24x24dp the vector has as intrinsic size. Any pointers appreciated 🙂


01/14/2020, 4:14 PM
For quick visual debugging you can always add Surface(color = ...) around the Composable to see its bounds. I know it's not the best, but better than nothing.
👍 2