ActivityIndicator
显示圆形加载指示器。
¥Displays a circular loading indicator.
示例
¥Example
参考
¥Reference
属性
¥Props
视图属性
继承 视图属性。
¥Inherits View Props.
animating
是显示指示器 (true) 还是隐藏指示器 (false)。
¥Whether to show the indicator (true) or hide it (false).
| 类型 | 默认 |
|---|---|
| bool | true |
color
加载控件的前景色。
¥The foreground color of the spinner.
| 类型 | 默认 |
|---|---|
| color | null(系统强调默认颜色)Android '#999999' iOS |
hidesWhenStopped iOS
指示器在不设置动画时是否应隐藏。
¥Whether the indicator should hide when not animating.
| 类型 | 默认 |
|---|---|
| bool | true |
ref
一个引用设置器,在安装时将被分配 元素节点。
¥A ref setter that will be assigned an element node when mounted.
size
指标的大小。
¥Size of the indicator.
| 类型 | 默认 |
|---|---|
枚举('small', 'large')数字 Android | 'small' |