try it: ProgressBar progressbar = new ProgressBar(context, null, android.R.attr.progressBarStyleLargeInverse);
Em quinta-feira, 28 de julho de 2011 08h03min32s UTC-3, Shruthi escreveu: > > 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

