You cannot change styles via Java code. You will need to examine what
is defined in progressBarStyleInverse (e.g., background) and apply
those individually.

On Thu, Jul 28, 2011 at 7:03 AM, Shruthi Varma
<[email protected]> wrote:
> Hi all,
>
> The default ProgressBar is white in color, which will not be visible on
> white background.
>
> So I needed a black progressbar in my application which I acheived by
> setting the style attribute (progressBarStyleInverse) in xml as given
> below:
>
> < ProgressBar android:id="@+id/progress_bar"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_centerInParent="true"
>
> style="?android:attr/progressBarStyleInverse" />
>
>
>
> But I need to set the style attribute in my java code after this line.
>
> ProgressBar progressbar = new ProgressBar(context);
>
>
>
> Please help.
>
>
>
> Regards,
>
> Shruthi.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to