How do I change the colour of the Linar Progress?如何对线型进度条的颜色进行修改?

简体中文

大家好,我想要制作一个程序,需要修改Linar Progress的不确定性颜色,但是遇到了一些问题,我无法修改这个颜色。请问有没有什么解决方法?
这是最精简的问题程序代码:
Bug Code
运行结果(WSA,Android 13):


运行结果(HUAWEI Mate 8,Android 8.0):

颜色并没有被修改,请问如何解决?
非常感谢!

English

Hello everyone, I would like to create a program that requires modifying the uncertainty color of Linar Progress. However, I have encountered some issues and am unable to modify this color. May I ask if there is any solution?
This is the simplest problem program code:
Bug Code
Run result (WSA, Android 13):


Running result (HUAWEI Mate 8, Android 8.0):

The color has not been modified, how can I solve it?
Thank you so much!

Yes, there seems to be a bug that prevents changing the color, but you can change the alternative through this.

android 15

Thank you,@otniel .
This is a method,but I need to modify different colors at any time,this problem seems to be temporarily unsolvable,I will use alternative methods to change the color of the Linar Progress.
Thank you so much!

1 Like