This is an overview of the most common usage of ScrollView. For more information about the available properties, methods, or events, head over to the complete API documentation for ScrollView.
<ScrollView> 是一个显示可滚动内容区域的UI组件。内容可以垂直或水平滚动。
<ScrollView orientation="horizontal">
<StackLayout orientation="horizontal">
<Label text="this" />
<Label text="text" />
<Label text="scrolls" />
<Label text="horizontally" />
<Label text="if necessary" />
</StackLayout>
</ScrollView>

| 名称 | 类型 | 描述 |
|---|---|---|
orientation | String | 获取或设置内容可以滚动的方向: horizontal 或 vertical.默认值: vertical。 |
scrollBarIndicatorVisible | Boolean | 指定滚动条是否可见。 默认值: true。 |
| 名称 | 描述 |
|---|---|
scroll | 滚动事件发生时发出。 |
| Android | iOS |
|---|---|
android.view | UIScrollView |