mgrazianodecastro
03/04/2023, 4:52 PMAndroidView(
modifier = Modifier.fillMaxSize(),
factory = { context ->
PlayerView(context).also { playerView ->
// ...
FrameLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
}
}
)
mgrazianodecastro
03/04/2023, 5:19 PMplayerView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM
looks like the way to go, no need to call FrameLayoutfarmerbb
03/04/2023, 8:16 PMAndroidView(
modifier = Modifier.fillMaxSize(),
factory = {
StyledPlayerView(it).apply {
this.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
layoutParams = FrameLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
}
}
)
mgrazianodecastro
03/04/2023, 10:23 PMalso
to apply