enter image description here我需要在Android布局中的琥珀色和绿色之间仅显示1dp宽。
this is drawable xml file
我只需要在琥珀色和绿色之间显示1dp宽度
this is drawable xml file
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@android:id/background">
<shape>
<corners
android:radius="0dip" />
<gradient
android:startColor="#ffA8C647"
android:endColor="#ffA8C647"
android:angle="90" />
</shape>
</item>
<item
android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners
android:radius="0dip" />
<gradient
android:startColor="#FFF"
android:endColor="#FFF"
android:angle="90" />
</shape>
</clip>
</item>
<item
android:id="@android:id/progress">
<clip>
<shape>
<corners
android:radius="0dip" />
<gradient
[android:startColor="#ffFF9601"
android:centerColor="#ffFF9601"
android:centerY="0.50"
android:endColor="#ffFF9601"
android:angle="270" />
</shape>
</clip>
</item>
</layer-list>][1]
我只需要在琥珀色和绿色之间显示1dp宽