Function

horizontalScroll

Modify element to allow it to scroll horizontally when its content is larger than its constraints.

horizontalScroll

Source set: JvmAndAndroid
public fun RemoteModifier.horizontalScroll(state: RemoteScrollState): RemoteModifier

Modify element to allow it to scroll horizontally when its content is larger than its constraints.

Example of enabling horizontal scrolling on a androidx.compose.remote.creation.compose.layout.RemoteRow:

Parameters

state The RemoteScrollState that tracks and controls the scroll position. It can be created and remembered using rememberRemoteScrollState.

Return

The modified RemoteModifier.

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: