ProgressBar属性小结(转载)

ProgressBar属性小结

属性

  1. android:animationResolution:Timeout between frames of animation in milliseconds[integer]:超时动画帧,单位是毫秒

  2. android:indeterminate:Allows to enable the indeterminate mode. [boolean] :允许使用不确定模式

  3. android:indeterminateBehavior:Defines how the indeterminate mode should behave when the progress reaches max.[enum]:定义当进度条满的时候的模式

    Values

    • repeat:1,Progress starts over from 0.
    • cycle:2,Progress keeps the current value and goes back to 0.
  4. android:indeterminateDrawable:Drawable used for the indeterminate mode.:定义不确定模式是否可drawable

  5. android:indeterminateDuration:Duration of the indeterminate animation.[integer]:动画的持续(时间不定的动画)
  6. android:indeterminateOnly:Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).[boolean] :限制为不定模式
  7. android:indeterminateTint:Tint to apply to the indeterminate progress indicator.
  8. android:indeterminateTintMode
  9. android:interpolator
  10. android:max
  11. android:maxHeight
  12. android:maxWidth
  13. android:minHeight
  14. android:minWidth
  15. android:mirrorForRtl:Defines if the associated drawables need to be mirrored when in RTL mode. Default is false[boolean]
  16. android:progress:Defines the default progress value, between 0 and max.[integer]:定义默认的进度值
  17. android:progressBackgroundTint:Tint to apply to the progress indicator background.:进度条的背景颜色
  18. android:progressBackgroundTintMode:Blending mode used to apply the progress indicator background tint.
  19. android:progressDrawable:Drawable used for the progress mode.
  20. android:progressTint:Tint to apply to the progress indicator.:进度条的颜色
  21. android:progressTintMode:Blending mode used to apply the progress indicator tint.颜色模式

    Values

    • src_over:3,
    • src_in:5,
    • src_atop:9,
    • multiply:14,
    • screen:15,
    • add:16,

    Related Methods

    • setProgressTintMode(PorterDuff.Mode)
  22. android:secondaryProgress:Defines the secondary progress value, between 0 and max.
  23. android:secondaryProgressTint:Tint to apply to the secondary progress indicator.
  24. android:secondaryProgressTintMode:Blending mode used to apply the secondary progress indicator tint.

    Values

    • src_over:3,
    • src_in:5,
    • src_atop:9,
    • multiply:14,
    • screen:15,
    • add:16,

    Related Methods

    • setProgressTintMode(PorterDuff.Mode)


文/DoubleFang(简书作者)
原文链接:http://www.jianshu.com/p/46d142a4d030
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值