aherbel
01/16/2021, 7:53 PMTimo Drick
01/16/2021, 7:55 PMaherbel
01/16/2021, 7:56 PMaherbel
01/16/2021, 7:58 PMTimo Drick
01/16/2021, 7:58 PMaherbel
01/16/2021, 8:02 PMaherbel
01/16/2021, 8:05 PMTimo Drick
01/16/2021, 8:06 PMTimo Drick
01/16/2021, 8:06 PMaherbel
01/16/2021, 8:07 PMaherbel
01/16/2021, 8:07 PMAdam Powell
01/16/2021, 8:07 PMaherbel
01/16/2021, 8:14 PMTimo Drick
01/16/2021, 8:54 PM@OptIn(ExperimentalLayout::class)
@Preview
@Composable
fun BorderTest() {
val border = Modifier
.border(BorderStroke(1.dp, Color.Gray.copy(alpha = 0.5f)), RoundedCornerShape(10.dp))
.padding(8.dp)
Row(Modifier.preferredHeight(IntrinsicSize.Min)) {
Icon(
modifier = Modifier.fillMaxHeight().then(border),
imageVector = <http://Icons.Filled.Menu|Icons.Filled.Menu>
)
Spacer(Modifier.width(8.dp))
BasicTextField(
modifier = border,
value = TextFieldValue("Test"),
onValueChange = {}
)
}
}
Timo Drick
01/16/2021, 8:55 PMaherbel
01/16/2021, 11:57 PM