kotlinforandroid
06/28/2022, 1:49 PMMediumTopAppBar
. However, it doesn't work as I expected. The button is displayed twice...? Any idea what is going on? Does TopAppBar not support extra content beside the title?
MediumTopAppBar(
actions = {
IconButton(onClick = { /*TODO*/ }) {
Icon(Icons.Default.Add, contentDescription = null)
}
},
navigationIcon = {
IconButton(onClick = onClose) {
Icon(Icons.Filled.ArrowBack, contentDescription = null)
}
},
title = {
Row {
Text(text = stringResource(id = R.string.title_bodymeasurements))
Button(onClick = { /*TODO*/ }) {
Text(text = "Test")
}
}
}
}
}