[英]How to create a progress dialog without title and message?
How to create a progress dialog without title and message? 如何创建没有标题和消息的进度对话框? I used this code:
我使用以下代码:
ProgressDialog.show(MyActivity.this, "", "", true);
But the progress spin was not centered well in the progress dialog view. 但是进度旋转在进度对话框视图中没有很好地居中。
Thanks. 谢谢。
ProgressDialog
is an extension of AlertDialog
, so make an AlertDialog
and set it up manually, with your own graphic in the center to spin away while it's loading. ProgressDialog
是AlertDialog
的扩展,因此请制作一个AlertDialog
并手动设置它,并在中心放置您自己的图形,以便在加载时旋转。
http://developer.android.com/reference/android/app/AlertDialog.html http://developer.android.com/reference/android/app/AlertDialog.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.