Styling progress dialog in android -
spent half day understand how change styles progress dialog , not able so.
very simple thing wanted start with, change spinner color in progress dialog other color other white ! , got stuck here itself.
in android sdk , using image , applying animation , have scratch change color of spinner ?
any examples progress dialog has been modified helpful , have seen in documentation , google search results upto 4-6 pages :) , still not able it.
any interesting way show progress dialog other default 1 ?
i appreciate if can provide blog on applying themes , styles , explains in detail.
some code using,
dialog1 = new progressdialog(this); dialog1 = progressdialog.show(this, "", "loading. please wait...", true);
trying lot dialog1, not getting desired result.
thank you
final progressdialog progressbar = progressdialog.show( searchscreen.this, "", progressbarsearching); progressbar.setindeterminate(true); progressbar.setindeterminatedrawable(getresources() .getdrawable(r.anim.progressbar_handler));
progressbar_handler.xml
<shape android:shape="ring" android:innerradiusratio="3" android:thicknessratio="8" android:uselevel="false"> <size android:width="48dip" android:height="48dip" /> <gradient android:type="sweep" android:uselevel="false" android:startcolor="#4c737373" android:centercolor="#4c737373" android:centery="0.50" android:endcolor="#ff0000" /> </shape>
Comments
Post a Comment