How to increase size of custom Progress dialog in android? -


I am using the following class to display progress dialog ..

MyProgressDialog.java Public class expands the MyProgressDialog dialogue {public static MyProgressDialog Show (Reference Reference, Charsequence Title, Charsequence Message) {Return Show (Reference, Title, Message, Incorrect); } Public Static MyProgressDialog Show (Reference Reference, Fourth Centenary Title, Foursensen Messaging, Boolean Unconfirmed) {Return Show (Reference, Title, Message, Indefinite, Wrong, Zero); } Public Static MyProgressDialog Show (Reference Reference, Charity Title, Foursense Message, Boolean Unconfirmed, Boolean Cancellable) {Return Show (Reference, Title, Message, Uncertain, Cancellable, Empty); } Public Static MyProgressDialog Show (Reference Reference, Foursense Title, Foursense Message, Boolean Uncertain, Boolean Cancellation, OnCannelister Cancellation Writer) {MyProgressDialog Dialogue = New MyProgressDialog (Reference); Dialog.setTitle (title); Dialog.setCancelable (canceled); Dialog.setOnCancelListener (cancelListener); / * The next line will add progress to the dialog. * / Dialog.addContentView (new progress bar (context), new layout parameters (30,30)); Dialog.show (); Return dialog; } Public MyProgressDialog {Reference Reference} {Super (Reference, R. Style. NewDialog); }}

My new dialog style in style. Xml

  & lt; Style name = "NewDialog" parent = "@ android: style / theme .Dialog" & gt; & Lt; Item name = "android: windowNoTitle" & gt; True & lt; / Item & gt; & Lt; Item name = "android: windowBackground" & gt; @drawable / vogstabimage_80 & lt; / Item & gt; & Lt; Item name = "android: textcolor" & gt; # Ffffff & lt; / Item & gt; & Lt; Item name = "Android: text" & gt; Loading ... & lt; / Item & gt; & Lt; / Style & gt; & Lt; Item name = "android: windowBackground" & gt; @drawable / vogstabimage_80 & lt; / Item & gt;   

The image I used earlier is 40 * 40 and now I am using 80 * 80

but I have no change in the size of progress Not found dialogue

How can I increase the size of the progress dialogue?

Why is it not changing its size & gt; Do I need to change anything in my code?

I have searched in SE but all those posts are about animation, I just want to use this image type.

Please help

thanks in advance

please link this Go through

This can help you resize the dialog box

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -