自定义进度视图
我正在尝试制作一个看起来像是进度视图自定义的控件。 这就是我应该想做的。 它是一个进度条,可用作倒计时器。从 30 秒开始,条形图呈绿色。随着时间的推移,条形图会缩短。 当时间达到 20 秒时,条形变为黄色。 10 秒时,条形变为红色。
希望您能给我一些如何使用进度视图自定义它的想法?或者是另一个控件的?
I'm trying to make a control that seems a customization of the progress view.
This is what I should want to make.
It is a progress bar that would work as a countdown timer. Start at 30 seconds, and the bar is green. As the time progress the bar is shorten.
When the time is 20 seconds the bar turns to yellow. At 10 seconds, the bar is red.
Hope you can give me some idea how to customize it w/ the progress view? or is it of another control?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须创建自己的控件。
You will have to create your own control.
您可能想看看
PDColoredProgressView
< /a>.You might want to have a look at
PDColoredProgressView
.