Cuối cùng! Tôi đã đi trên một nhiệm vụ để tìm ra điều này cho bạn, vì vậy nếu điều này đủ, cảm thấy tự do để cho tôi rằng tiền thưởng, haha.
Hãy thử sử dụng này trong cách bố trí của bạn:
<View android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight=".20"/>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:orientation="horizontal"
android:gravity="center"
android:layout_weight="0.62">
<View android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight=".03"/>
<ProgressBar style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="0.94"
android:progressDrawable="@drawable/progressmask"
android:progress="0"
android:max="10"
android:rotation="180"/>
<View android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight=".03"/>
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight=".18"/>
</LinearLayout>
mà tham chiếu drawable này (progressmask.xml):
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="50dip" />
<gradient android:startColor="#00000000" android:endColor="#00000000" android:angle="270" />
<stroke android:width="1dp" android:color="#00000000" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="50dip" />
<gradient android:startColor="#aa000000" android:endColor="#aa000000"
android:angle="270" />
<stroke android:width="1dp" android:color="#00000000" />
</shape>
</clip>
</item>
</layer-list>
và hình ảnh này (colorprogress.png)

Những gì nó làm là đặt hình ảnh làm nền của linearlayout, có chứa thanh tiến trình. Thanh tiến trình thêm một mặt nạ đen nửa trong suốt vào hình ảnh để làm cho nó xuất hiện khi đèn tắt.
LƯU Ý: Để có được ảnh hưởng này, tôi đã phải khỉ với thanh tiến trình (tức là lật nó và đặt nó chỉ trong 10 khoảng thời gian. Bạn sẽ phải thực hiện một số phép tính để có được tiến trình phù hợp với Ví dụ: setprogress ((100-trueprogress)/10) Xin lỗi tôi đã không làm phần này cho bạn
Đây là những gì nó sẽ giống như tiến trình 50% (x nhỏ và hình tam giác sẽ biến mất trên thiết bị)

Tôi hy vọng điều này sẽ trả lời câu hỏi của bạn!
để làm điều đó bạn nên tạo 9 hình ảnh bản vá. – TheFlash
Theo tôi, tốt hơn là tạo ProgressBar tùy chỉnh và đặt các hình ảnh/màu sắc khác nhau tùy thuộc vào tiến độ của nó. – hardartcore
xem liệu điều này có thể giúp http://miroprocessordev.blogspot.in/2012/09/android-how-to-change-progress-bar.html – Android