I was looking through my compose trace, and found ...
# compose
t
I was looking through my compose trace, and found that, after a recomposition, there’s a “traversal” calls which showing “LinearLayout -> FrameLayout -> ContentFrameLayout etc”.. Why’s this happening? Why am seeing views in recompose block when I don’t have any
AndroidViews
anywhere ? 🤔
g
Window frame and activity content, those are views
It looks that those are part of AndroidComposeView
t
So when I access some activity, window thing from compose context, it goes through the
AndroidComposeView
? Is that what you’re saying?
g
Composable should draw somehow and Android is based on Activity which renders in window and uses View as root
So ComposeActivity uses AndroidComposeView to render composablew which itself is a part of Activity hierarchy
t
understood 👍
Any idea why all
doFrame
calls come under
animation
block ?
g
Nope
but just a guess, isn’t systrace just show different operations like this, so it shows that animation is happening during doFrame (which makes sense)
t
all doFrames call has animation blocks under it. even if there’s no animation we’re doing from compass side.
g
Not an expert in systrace, but it looks that this what compose runtime reports to systrace: