Scroll View is a container that shows the preview components by layout scroll.
See how the structure is represented:
Attribute | Type | Required | Definition |
---|---|---|---|
children | List <ServerDriven Component> | ✓ | Defines the attributes list to be displayed in the layout view.
|
scrollDirection | ScrollAxis | Defines the scroll direction on the screen. It can be modify according
to the ScrollAxis class. By default, it has the VERTICAL value. | |
scrollBarEnabled | Boolean | Sets if the scroll bar will be displayed or not. This configuration is true by default. | |
context | ContextData | Sets a context to scroll view. |
It is an ENUM
, the values are:
Values | Definition |
---|---|
VERTICAL | Defines the scroll as vertical. |
HORIZONTAL | Defines the scroll as horizontal. |
ScrollView(scrollDirection = ScrollAxis.VERTICAL,
children = listOf(
Text("Vertical ScrollView"),
Text("Vertical ScrollView"),
Text("Vertical ScrollView")
)
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.