【发布时间】:2020-11-01 01:36:03
【问题描述】:
我有这个圆形进度条
我想绕过最后一个拐角,所以看起来像这样
可以这样做吗?
这是我的实际进度条的 XML:
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%"
android:pivotY="50%"
android:fromDegrees="0"
android:toDegrees="360">
<shape
android:shape="ring"
android:innerRadiusRatio="3"
android:thicknessRatio="9"
android:useLevel="false">
<gradient
android:type="sweep"
android:startColor="@android:color/holo_orange_light"
android:endColor="@android:color/holo_red_light" />
</shape>
</rotate>
还有我的进度条:
<ProgressBar
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminateDrawable="@drawable/progress"/>
我已经看到它是如何使用 HorizontalProgressBar 而不是使用 CircularProgressBar 的,是否可以做到这种效果?是怎么做到的?
【问题讨论】:
标签: android xml android-progressbar