开发者

Styling Android ProgressDialog

I want to show custom animation in my ProgressDialog. After reading few posts, I understood that we can define custom styles in styles.xml and provide our own custom drawable there. But, when I am trying to define styles for ProgressDialog, it is not allowing me to do so. Am I doing something wrong here?

< style parent="@android:style/Widget.ProgressDialog" name="MyProgressDialog"> 

< item name="android:progressDrawable">@anim/myanim < /item&开发者_如何学编程gt; 

< /style>

It does not understand Widget.ProgressDialog. What is the difference between ProgressBar and ProgressDialog if I put ProgressBar in Spinner mode ?


I wouldn't use styles to make a custom progress dialog. Making a custom dialog is quite easy when you inflate it from an xml layout.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜