Artur Schwarz
06/11/2021, 12:03 PM@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
06/11/2021, 2:20 PMpreviewView.implementationMode = PreviewView.ImplementationMode.COMPATIBLE
Artur Schwarz
06/13/2021, 9:37 AMNeal Sanche
06/22/2021, 6:52 PM