我使用此代码在进度条的边缘创建一个角落,但右侧不起作用
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="35dip" />
<gradient android:startColor="#990000" android:endColor="#E6E8FA" />
</shape>
</clip>
</item>
就是它的样子
答案 0 :(得分:0)
问题是剪辑是基于ProgressBar的整个容器大小进行裁剪,因此它会在左侧的不可见角上舍入。当它达到100%时,它看起来应该是正确的。我认为你只需要一个可绘制的剪辑就可以完成你想要的外观。