You need to make a smoothly filled ProgressBar following form: alt text

There are resources
background.png

alt text

progress.png

alt text

I tried to do so
main.xml

 <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="250dp" android:layout_height="100dp" android:layout_gravity="center_horizontal|center_vertical" android:background="@drawable/background" android:max="100" android:progressDrawable="@drawable/back_arc" > </ProgressBar> 

back_arc.xml

 <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/bar_value"> <clip android:clipOrientation="horizontal" android:drawable="@drawable/progress" /> </item> </layer-list> 

The result was a little different. alt text

  • I wonder how it earned you? Did you override the adapter for the progress bar or tried to change the skin? - Gorets
  • Thread c sending handler and incrementProgressBy() - tim_taller in it

1 answer 1

With the help of the standard ProgressBar declared piece could not be done. The result was achieved with the help of RelativeLayout and overlaying pictures on each other - progress.png below, then the background, which with the help of Rotate moved in the form of a “flap” and over the background with a hole under the arc (it could be useful to someone).