mgrazianodecastro
AndroidView( modifier = Modifier.fillMaxSize(), factory = { context -> PlayerView(context).also { playerView -> // ... FrameLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) } } )
playerView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM
farmerbb
AndroidView( modifier = Modifier.fillMaxSize(), factory = { StyledPlayerView(it).apply { this.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT layoutParams = FrameLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) } } )
also
apply
A modern programming language that makes developers happier.