android - Android 有进度条/计时器吗?

标签 android android-progressbar

如你所见 attachment ,我的 android 应用程序需要一个进度条。有没有类似上面附件的?

最佳答案

在 android sdk 中没有直接实现它,但是有一些项目可以帮助您实现它,其中之一是 ProgressWheel另一个是 CircleDisplay .

而且我认为 Circle Display 会更好地帮助您,如他们的 GitHub 页面所述,您可以完全控制它:

CircleDisplay cd = (CircleDisplay) findViewById(R.id.circleDisplay);
cd.setAnimDuration(3000);
cd.setValueWidthPercent(55f);
cd.setTextSize(36f);
cd.setColor(Color.GREEN);
cd.setDrawText(true);
cd.setDrawInnerCircle(true);
cd.setFormatDigits(1);
cd.setTouchEnabled(true);
cd.setSelectionListener(this);
cd.setUnit("%");
cd.setStepSize(0.5f);
// cd.setCustomText(...); // sets a custom array of text
cd.showValue(75f, 100f, true);

关于android - Android 有进度条/计时器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34921534/

相关文章:

android - 将插件升级到3.0.0时,Gradle构建错误(manifestOutputFile)

android - 客户经理缓存 Android

android - 使用 Jsoup 解析 Blogger Rss

android - android中的等待进度条

android - 仅在我的 viewpager 的第一页中显示进度条

java - 梯度错误:Execution failed for task ':app:transformClassesWithJarMergingForDebug'

java - android应用程序存储ArrayList内容的最佳方法?

android - 自定义全息样式进度条

android - 如何改变Android中循环进度的颜色和图案?

android - 在 AsyncTask 操作期间未显示不确定的 ProgressBar