2011-12-21 92 views
0

嗨即時調用在Android的一個簡單的進度條下面的代碼Android的進度條白色圓圈

MyDialog = ProgressDialog.show(attraction_more_info.this, " " , 
           " Loading. Please wait ... ", true); 

的事情是,當出現有一個白色的小圓圈與白色三角在它旋轉圖標上方。我如何擺脫這一點,所以它只是旋轉的圈子和文字。

它看起來像下面的圖片雖然myne不說「不確定」的部分。

Image http://blog.lytsing.org/wp-content/uploads/2010/05/progressbar_indeterminate.jpg

可能是一些簡單的擺脫它。

謝謝

+1

如果您不想使用,則在標題中傳遞null – Sameer 2011-12-21 04:28:56

回答

0

刪除「」後的吸引力more_info.this之間的空間。這是標題。您可以在雙引號內輸入任何內容,但可以選擇。例如。檢索信息

從這:

MyDialog = ProgressDialog.show(attraction_more_info.this, " " , " Loading. Please wait ... ", true);

進入這個:

MyDialog = ProgressDialog.show(attraction_more_info.this, "" , " Loading. Please wait ... ", true);

0

轉到此相反,

MyDialog = ProgressDialog.setMessage("Loading. Please wait..."); 

這將提供您與您預期的結果。