如何创建自定义水平进度条 [英] How to create Custom Horizontal progress bar
本文介绍了如何创建自定义水平进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助创建这样的水平进度条
Please help to create horizontal progress bar like this
推荐答案
您不需要自定义进度条.在布局 xml 文件中使用 style="@android:style/Widget.ProgressBar.Horizontal"
.您还需要使用ProgressBar.incrementProgressBy(int progress);
You do not need a custom progress bar. Use style="@android:style/Widget.ProgressBar.Horizontal"
in your layout xml file. You will also need to use
ProgressBar.incrementProgressBy(int progress);
这篇关于如何创建自定义水平进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文