ProgressBar屬性小結(jié)
屬性
android:animationResolution
:Timeout between frames of animation in milliseconds[integer]:超時(shí)動(dòng)畫幀惯裕,單位是毫秒android:indeterminate
:Allows to enable the indeterminate mode. [boolean] :允許使用不確定模式-
android:indeterminateBehavior
:Defines how the indeterminate mode should behave when the progress reaches max.[enum]:定義當(dāng)進(jìn)度條滿的時(shí)候的模式Values
- repeat:1,Progress starts over from 0.
- cycle:2,Progress keeps the current value and goes back to 0.
android:indeterminateDrawable
:Drawable used for the indeterminate mode.:定義不確定模式是否可drawableandroid:indeterminateDuration
:Duration of the indeterminate animation.[integer]:動(dòng)畫的持續(xù)(時(shí)間不定的動(dòng)畫)android:indeterminateOnly
:Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).[boolean] :限制為不定模式android:indeterminateTint
:Tint to apply to the indeterminate progress indicator.android:indeterminateTintMode
android:interpolator
android:max
android:maxHeight
android:maxWidth
android:minHeight
android:minWidth
android:mirrorForRtl
:Defines if the associated drawables need to be mirrored when in RTL mode. Default is false[boolean]android:progress
:Defines the default progress value, between 0 and max.[integer]:定義默認(rèn)的進(jìn)度值android:progressBackgroundTint
:Tint to apply to the progress indicator background.:進(jìn)度條的背景顏色android:progressBackgroundTintMode
:Blending mode used to apply the progress indicator background tint.android:progressDrawable
:Drawable used for the progress mode.android:progressTint
:Tint to apply to the progress indicator.:進(jìn)度條的顏色-
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)
android:secondaryProgress
:Defines the secondary progress value, between 0 and max.android:secondaryProgressTint
:Tint to apply to the secondary progress indicator.-
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)