[android-developers] How to set style attribute for progress bar programmatically?
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home