Closed k21rs123 closed 2 months ago
Remove the modifier inside androidView and try like this(with adding ViewGroup.LayoutParams)
AndroidView( factory = {
val view = YouTubePlayerView(it).apply {
enableAutomaticInitialization = false
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
Sorry for the delayed reply. You are my god
Question / Problem
@PierfrancescoSoffritti How to Change the Display Area in JetPack Compose: Tried fillMaxHeight, fillMaxSize, and Height, But Size Doesn't Change. Need Guidance.
youTubePlayerView.matchParent() <- crash
Current Layout
Desired Layout