如何创建“横向风格” Android 中以编程方式显示进度条?
我正在以编程方式在我的应用程序中创建一个 ProgressBar,默认情况下它是 SPIN 样式,但我希望它是 HORIZONTAL 样式。我没有看到任何方法/常量来实现这一点。
我不想使用 ProgressDialog,因为它与我的应用程序 UI 主题不一致。
请问有什么建议吗?
I am creating a ProgressBar in my app programmatically it is of SPIN style by default however I want it in HORIZONTAL style. I don't see any method/constant to achieve this.
And I don't want to use ProgressDialog as it'd be inconsistent with my App UI theme.
Any suggestions please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用这个:
use this:
如果您使用的是 ProgressDialog,那么这里有一种更改 ProgressDialog 中进度条样式的方法。
If you are using a ProgressDialog then, here is a way to change the style of the progressBar in the ProgressDialog.