更改进度条的样式

sof*_*ply 1 android

我从以下位置加载了progressBar:

<?xml version="1.0" encoding="utf-8"?>
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+android:id/progress_small" style="?android:attr/progressBarStyleLarge"
 android:layout_width="wrap_content" android:layout_height="wrap_content" />
Run Code Online (Sandbox Code Playgroud)

在不同的设备上我得到了不同的可视 我希望每个设备上的进度条和每个Android版本看起来都是四舍五入的,而不仅仅是通过一些简短的线条构建.

有没有办法强迫这个?谢谢到目前为止

Pet*_*ego 6

您需要创建自定义ProgressBar.查看以前的问题.

还要检查这个例子在这里,在这里.

这个例子没有编码:http://majaxandroidtips.blogspot.com/2009/06/how-to-create-custom-progress-bar.html