android - Get ProgressBar object from ProgressDialog -
is there way can "mprogress" object progressdialog.java class?
i want set colour of indeterminate spinner white , keep same android style it. i've seen solutions using styling none have fit criteria. want same it, colour white.
the reason want mprogress object can use below code on it:
mprogressbar.getindeterminatedrawable().setcolorfilter(new lightingcolorfilter(0xff000000, 0xffffff));
found it!
progressdialog progress = new progressdialog(this); alertdialog alert = progress; // not sure if need bit, required progressbar prog = (progressbar)progress.findviewbyid(android.r.id.progress); prog.getindeterminatedrawable().setcolorfilter(new lightingcolorfilter(0xff000000, 0xffffff));
Comments
Post a Comment