Jak zastosować efekt blasku?Jak zaimplementować ten typ paska postępu w systemie Android przy użyciu pliku xml
Próbuję stworzyć ten typ poziomy ProgressBar
, ale nie mam pojęcia o efektach świecących jako punkt początkowy postępu.
Oto mój kod koloru gradientu
<?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>
<corners android:radius="0dip" />
<solid android:color="#ff9d9e9d"/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:angle="180"
android:startColor="#8872f8fc"
android:endColor="#886dc0e3" />
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:angle="180"
android:startColor="#31c6f7"
android:centerColor="#2ea6d1"
android:endColor="#2884a6" />
</shape>
</clip>
</item>
</layer-list>
może to pomoże http://stackoverflow.com/questions/15898185/holo-progressbar-glow-effect – Elior
U powinien to sprawdzić http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog – Niko
W jaki sposób udało się dodać procent poniżej, aby poprawnie wyrównać go z paskiem postępu? – Abbadon