我有這樣的代碼動我的進度與Android的圖像
是一個進度條,與紅色
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<gradient
android:startColor="#c3c3c3"
android:centerColor="#c3c3c3"
android:centerY="0.75"
android:endColor="#7f7f7f"
android:angle="270"/>
<padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"/>
<corners android:radius="10dp"/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<gradient
android:startColor="#234"
android:centerColor="#234"
android:centerY="0.75"
android:endColor="#a24"
android:angle="270"/>
<padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"/>
<corners android:radius="10dp"/>
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:startColor="#a42c48"
android:centerColor="#a42c48"
android:centerY="0.75"
android:endColor="#eb3e67"
android:angle="270"/>
<padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"/>
<corners android:radius="10dp"/>
</shape>
</clip>
</item>
</layer-list>
填寫這個樣子
現在我想要添加圖像同時移動進度條像下面的圖像填充
請使用您的layerlist幫我提前
感謝達米安的答案被拉伸。你有一個例子如何做到這一點請 – japuentem
是的,只是更新我的回答上面的代碼 – Damian
再次感謝,讓我試試代碼並發表任何評論 – japuentem