简体   繁体   中英

What does android:progressTintMode, android:secondaryProgressTintMode and android:progressDrawable do?

I am making a custom ProgressBar. How does android:progressTintMode and android:secondaryProgressTintMode effect the look of the Progress Bar?
I looked into the docs but couldn't understand.
Also how does android:progressDrawable effect the Progress Bar?

the progressDrawable defines the shape and color of the progress bar, then the progressTintMode defines how the progress bar will fill up.

EG if you want to have a progress bar with rounded corners, then the progressDrawable will define the shape with rounded corners. You would then use "src_in" as the progressTintMode so it will only fill up within the shape.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM