android - 在 Android 中更改 ProgressBar fps

标签 android android-progressbar

我在 xml 中使用 ProgressBar Android 总线非常慢。最佳是 60fps。是否可以更改帧速率或添加具有更多 fps 的自定义进度圈?

 <ProgressBar
                    android:id="@+id/progressBar1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="17dp"
                    android:layout_gravity="center" />

最佳答案

您可以修改持续时间:

android:indeterminateDuration=<duration in ms>

http://developer.android.com/reference/android/widget/ProgressBar.html#indeterminateDuration

关于android - 在 Android 中更改 ProgressBar fps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14731932/

相关文章:

android - 使用USB将摄像头连接到Android的外部网络摄像头

android - 如何将 List<ParseUser> 应用于 MultiAutoCompleteTextView?

android - 如何使用进度条?

android - 如何给下载一个进度条?

android - 使进度条背景透明

android - 如何在我的 Android 项目中将来自/res/values 的 xml 文件添加到我的 gitignore?

java - 转动屏幕时 DatePicker Fragment 泄漏

httpclient.execute(httpget) 之后的 Android 代码没有在尝试中运行(使用 AsyncTask)

angular-material - 角形 Material 进度微调器

android - Button android 中的 ProgressBar(Dialog)