Artur Schwarz
@Composable fun MainScreenContent(previewView: PreviewView? = null) { val context = LocalContext.current Row(modifier = Modifier.fillMaxSize()) { AndroidView(modifier = Modifier.fillMaxHeight().weight(2f), factory = { ctx -> previewView ?: View(context) }) Column( modifier = Modifier .fillMaxSize() .weight(0.7f) .padding(32.dp), verticalArrangement = Arrangement.SpaceBetween, horizontalAlignment = Alignment.CenterHorizontally ) { Text(style = MaterialTheme.typography.h2, text = "Fotos") LazyColumn() { } Button(modifier = Modifier.fillMaxWidth(), onClick = { /*TODO*/ }) { Text(text = "Aufnehmen") } } } }
pawegio
previewView.implementationMode = PreviewView.ImplementationMode.COMPATIBLE
Neal Sanche
A modern programming language that makes developers happier.