Sean Proctor
AndroidView
Modifier.weight()
Column
PreviewView
Column { AndroidView( modifier = Modifier.weight(1f), factory = { context -> PreviewView(context).apply { layoutParams = ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT) implementationMode = PreviewView.ImplementationMode.COMPATIBLE } } ) SomeOtherContent() }
Column { Box(Modifier.weight(1f)) { AndroidView( factory = { context -> PreviewView(context).apply { layoutParams = ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT) implementationMode = PreviewView.ImplementationMode.COMPATIBLE } } ) } SomeOtherContent() }
shikasd
A modern programming language that makes developers happier.