我想设计我自己的圆形进度条,而我确实有一个圆形进度条,我该如何让它看起来像这样:
我希望我的进度条看起来像里面有条纹的那个或者叫什么名字,但我不知道怎么做。
这是我的xml代码:
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="270"
android:toDegrees="270">
<shape
android:innerRadiusRatio="2.6"
android:shape="ring"
android:thickness="5dp"
android:useLevel="true"><!-- this line fixes the issue for lollipop api 21 -->
<gradient
android:angle="0"
android:endColor="#FFEE05"
android:startColor="#FFEE05"
android:type="sweep"
android:useLevel="false" />
</shape>
</rotate>