A layout composable that positions its children in a horizontal sequence.
RemoteRowSample
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteRowSample() {
RemoteRow(horizontalArrangement = RemoteArrangement.spacedBy(8.rdp)) {
RemoteText("Item A".rs, color = Color.Red.rc)
RemoteText("Item B".rs, color = Color.Green.rc)
RemoteText("Item C".rs, color = Color.Blue.rc)
}
}
RemoteRowWeightSample
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteRowWeightSample() {
RemoteRow(modifier = RemoteModifier.width(200.rdp)) {
RemoteBox(modifier = RemoteModifier.weight(1f).background(Color.Red.rc))
RemoteBox(modifier = RemoteModifier.weight(2f).background(Color.Blue.rc))
}
}