Making a horizontal progress bar using image xamarin android -
how can change progress bar picture? want want take horizontal length.
i want result http://www.bellaterreno.com/graphics/biz_processingbar/processingbar_blue_diagonal_sm_ani.gif
you can set custom progress bar creating additional xml in resource > drawable folder. create progressbar.xml file , customize own style. should looks similar this:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- define background properties: colors, gradient, etc --> <item android:id="@android:id/background"> <shape> <gradient android:startcolor="#000001" android:centercolor="#0b131e" android:centery="1.0" android:endcolor="#0d1522" android:angle="270" /> </shape> </item> <!-- define progress bar properties: colors, gradient, etc --> <item android:id="@android:id/progress"> <clip> <shape> <gradient android:startcolor="#007a00" android:centercolor="#007a00" android:centery="1.0" android:endcolor="#06101d" android:angle="270" /> </shape> </clip> </item> </layer-list> in axml file have define 'android:progressdrawable': <progressbar android:progressdrawable="@drawable/progressbar" ... />
based on stackoverflow post. how customize progress bar in android
or information in xamarin
you can achieve using custom renderer.
xamarin's james montemagno have guide regarding creating custom circular progress bar.
https://blog.xamarin.com/using-custom-controls-in-xamarin-forms-on-android/
official documentation on xamarin.forms custom renderers can found @ https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/
Comments
Post a Comment