🗑️ ProgressBarAndroid
已弃用
请改用社区软件包。
仅限 Android 的 React 组件,用于指示应用正在加载或应用中正在进行某些活动。
示例
参考
属性
继承 View 属性。
animating
是否显示 ProgressBar(true,默认值)或将其隐藏(false)。
| Type | Required |
|---|---|
| bool | No |
color
进度条的颜色。
| Type | Required |
|---|---|
| color | No |
indeterminate
进度条是否显示不确定进度。请注意,只有当 styleAttr 为 Horizontal 时,此属性才能为 false,并且需要提供 progress 值。
| Type | Required |
|---|---|
| indeterminateType | No |
progress
进度值(介于 0 和 1 之间)。
| Type | Required |
|---|---|
| number | No |
styleAttr
ProgressBar 的样式。可选值包括:
- Horizontal
- Normal(默认)
- Small
- Large
- Inverse
- SmallInverse
- LargeInverse
| Type | Required |
|---|---|
| enum('Horizontal', 'Normal', 'Small', 'Large', 'Inverse', 'SmallInverse', 'LargeInverse') | No |
testID
用于在端到端测试中定位此视图。
| Type | Required |
|---|---|
| string | No |