Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transparent, borderless ProgressDialog

Tags:

android

I've got a ProgressDialog that I have positioned to the bottom of my screen as to not overlap a logo. What I would like to do is create a custom style for the ProgressDialog that removes the background and the border. I'm not having any luck here.

Does anyone have a clue on how to apply this style?

like image 514
madzilla Avatar asked Mar 13 '11 20:03

madzilla


2 Answers

Have you tried setting the background to a transparent color?

This answer gives a detailed code sample.

like image 157
Matthew Willis Avatar answered Nov 05 '22 18:11

Matthew Willis


You can use an image for progress dialog and customize as you wish like-

         // Custom position Of image Loader
          WindowManager.LayoutParams wmlp =
          pDialog.getWindow().getAttributes(); int height =
          getResources().getDisplayMetrics().heightPixels; wmlp.y =
          height/4; pDialog.getWindow().setAttributes(wmlp);

For more details please follow the link below:

http://androiddubd.blogspot.com/2014/09/how-to-create-transparent-progress.html

like image 36
Md. Ilyas Hasan Mamun Avatar answered Nov 05 '22 20:11

Md. Ilyas Hasan Mamun