"Use ProgressBar" <progressbar android:id= "@+id/level_progressbar1" style= "@style/ Widget.Holo.Light.orange_ProgressBar.Horizontal "android:layout_width=" 120DP "Androi d:layout_height= "Wrap_content" android:layout_below= "@+id/exp_tv" Android:layout_cen Terhorizontal= "true"/>//"Res/values/styles.xml" <style name= "Widget.Holo.Light.orange_ Progressbar.horizontal "parent=" @android: Style/widget.holo.progressbar.horizontal "> <item name=" android: Progressdrawable "> @drawable/progress_horizontal_orange_holo_light</item> </style>//" res/drawable /progress_horiaontal_orange_holo_light.xml "<layer-list xmlns:android=" http://schemas.android.com/apk/res/ Android "> <item android:id=" @android: Id/background "android:drawable=" @drawable/orange_progress_bk "/> ; <item android:id= "@android: id/secondaryprogress" > <scale Android:scalewidth= "100%" android:drawable= "@drawable/orange_progress_light_bk"/> </item> & Lt;item android:id= "@android: id/progress" > <scale android:scalewidth= "100%" android:drawable= "@ DRAWABLE/ORANGE_PROGRESS_LIGHT_BK "/> </item></layer-list>
Android Custom ProgressBar