Android 有什么进展 bar/timer 吗?
Is there any progress bar/timer for Android?
如您所见
,我的 android 应用程序需要一个进度条。有没有和上面的附件类似的?
您可以查看 this library here is a good collection of donut progress bars. Also I recommend you to browse Android Arsenal 网站,这是一个很好的 android 免费自定义控件集合。
在 android sdk 中没有直接实现它,但是有一些项目可以帮助您实现它,其中之一是 ProgressWheel and another one is 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);
如您所见
您可以查看 this library here is a good collection of donut progress bars. Also I recommend you to browse Android Arsenal 网站,这是一个很好的 android 免费自定义控件集合。
在 android sdk 中没有直接实现它,但是有一些项目可以帮助您实现它,其中之一是 ProgressWheel and another one is 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);