Composable Function

RemoteRow

A layout composable that positions its children in a horizontal sequence.

RemoteRowSample

@Sampled
@Preview
@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
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteRowWeightSample() {
    RemoteRow(modifier = RemoteModifier.width(200.rdp)) {
        RemoteBox(modifier = RemoteModifier.weight(1f.rf).height(40.rdp).background(Color.Red.rc))
        RemoteBox(modifier = RemoteModifier.weight(2f.rf).height(40.rdp).background(Color.Blue.rc))
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: