Transparent, borderless ProgressDialog

后端 未结 3 1912
遇见更好的自我
遇见更好的自我 2021-01-17 14:34

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

3条回答
  •  星月不相逢
    2021-01-17 14:55

    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

提交回复
热议问题