I am using circular progress bar on Android. I want to change the color of this. I'm using the style
"Android: attr / progressBarStyleLargeInverse" . How can the color of the progress bar change?
How to customize the style ?? Besides, what is the definition of style ??
Thanks in advance.
Create an XML folder in the reserve directory and include the progress.xml file Put it progress.xml & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Android: pivotY = "50%" Android: fromDegrees = "0" Android: toDegrees = "Android" 360 "& gt; & Lt; Size Android: shape = "ring" Android: innerRadiusRatio = "3" Android: thickiriteo = "8" Android: useLevel = "false" & gt; & Lt; Size Android: width = "76dip" Android: height = "76dip" /> & Lt; Shield Android: Type = "Sweep" Android: useLevel = "false" Android: startColor = "# 447a29" Android: endColor = "# 447a29" Android: Angle = "0" /> & Lt; / Size & gt; & Lt; / Rotate & gt; Set startcolor and endcolor as per your choice. Set up now that in progress.xml in progressbar s backgound. Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: Background: Android: Progressbar Android: id = "@ + id / progressbar01" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" = "@ XML / Progress" & gt;
Comments
Post a Comment