Halil Ozercan
07/22/2020, 7:40 PMBox
after it is created? Or any other Composable
for that matter?pavi2410
07/22/2020, 7:46 PMModifier.drawWithContent
val (boxSize, setBoxSize) = state { 0 }
Box(modifier = Modifier.drawWithContent {
drawContent()
setBoxSize(size)
})
I tried something like thisHalil Ozercan
07/22/2020, 7:50 PMZach Klippenstein (he/him) [MOD]
07/22/2020, 7:52 PMonPositioned
modifier is probably a better fit for this use case: https://developer.android.com/reference/kotlin/androidx/ui/core/package-summary#onpositioned_1Leland Richardson [G]
07/22/2020, 8:08 PMonPositioned
modifier will likely have an onSizeChanged
sibling API soon which would be even betterHalil Ozercan
07/22/2020, 8:37 PMonPositioned
. All media controllers are written in Compose. Only the video surface is inflated by AndroidView
.