[英]Progress bar is not displaying immediately
在我的活動課程中單擊“提交”按鈕后,我正在向服務器發送投訴。 這是我的代碼,用於在投訴發送到服務器時顯示進度條。 但是單擊提交后,它不會立即顯示。 它在從服務器獲取響應之前顯示進度條。
case R.id.submit:
ProgressDialog.show(this, " " , " Sending Complaint. \n Please wait ... ", true);
/*...code to send complaint and get the response....*/
請幫我
在單獨的線程中而不是在當前正在執行的UI線程中進行服務器通信。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.