i have custom progress bar shape... , want background(which filled gray) make stroked, iner , outer stroke 9dp gap between them... seems can't work.
this original xml of progress bar inner circle.
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@android:id/progress"> <shape android:innerradius="60dp" android:shape="ring" android:thickness="9dp" android:uselevel="true"> <gradient android:startcolor="@color/light_gray" android:endcolor="@color/light_gray" android:type="sweep" /> </shape> </item> </layer-list>
and 1 question more(i dont want open question): -can make orange end oval(rounded) somehow? on progress bars? xml same top one, different color.
edit: may help, use progress bar component custom background.
edit2: accomplished setting circle radius on 60 , thicknesson 1dp, , creating progressbar component background 69 radius , 1dp thickness.
i got need in design, not approach. can on second question?
please refer below code creating progress bar
<?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:pivotx="50%" android:pivoty="50%" android:fromdegrees="0" android:todegrees="360"> <shape android:shape="ring" android:innerradiusratio="3" android:thicknessratio="8" android:uselevel="false"> <size android:width="76dip" android:height="76dip" /> <gradient android:type="sweep" android:uselevel="false" android:startcolor="@android:color/transparent" android:endcolor="#00ff00" android:angle="0" /> </shape> </rotate>
and there , feel , more info please refer https://pankajchunchun.wordpress.com/2011/09/10/customization-of-spinner-progress/
Comments
Post a Comment