Thursday 15 September 2011

android - How to add progress bar around a button? -


I have made such a circle button: [1] :. When the command is given then I want to add a progress bar around the button. Please show me how I can add the progress bar around the circle button. This is the main_activity button:

  & lt; Button android: id = "@ + id / button" Android: layout_width = "70dp" Android: layout_height = "70dp" Android: layout_alignParentLeft = "true" Android: layout_alignParentTop = "true" Android: layout_marginLeft = "100dp" Android: Background = "@ drawable / round_button" android: gravity = "center_vertical | center_horizontal" Android: StateListAnimator = "@ Anim / Button_elevation" android: text = "@ string / hello" Android: textColor = "# fff" / & gt;  

Is this the design of the button?

  & lt; Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Size xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Size = "Oval" & gt; & Lt; Solid Android: Color = "# f43532" /> & Lt; Stroke Android: width = "0.2dp" android: color = "# f43532" / & gt; & Lt; Wave Android: color = "Android: colorControlHighlight" & gt; & Lt; Items & gt; & Lt; Size Android: shape = "oval" & gt; & Lt; Solid Android: Color = "Android: Color Score" /> & Lt; / Size & gt; & Lt; / Item & gt; & Lt; / Wave & gt; & Lt; / Size & gt;  


No comments:

Post a Comment