當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressDialog.setProgressNumberFormat方法代碼示例

本文整理匯總了Java中android.app.ProgressDialog.setProgressNumberFormat方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressDialog.setProgressNumberFormat方法的具體用法?Java ProgressDialog.setProgressNumberFormat怎麽用?Java ProgressDialog.setProgressNumberFormat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.app.ProgressDialog的用法示例。


在下文中一共展示了ProgressDialog.setProgressNumberFormat方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: startAuth

import android.app.ProgressDialog; //導入方法依賴的package包/類
/**
 * Start the auth procedure (use StackExchangeAuth for now)
 */
private void startAuth()
{
    mProgressDialog = new ProgressDialog(this);
    mProgressDialog.setMessage(getText(R.string.activity_authenticator_progress_title));
    mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    mProgressDialog.setProgressNumberFormat(null);
    mProgressDialog.setProgressPercentFormat(null);
    mProgressDialog.show();
    new StackExchangeAuth(
            mEmail.getText().toString(),
            mPassword.getText().toString(),
            this,
            this
    );
}
 
開發者ID:HueToYou,項目名稱:ChatExchange-old,代碼行數:19,代碼來源:AuthenticatorActivity.java

示例2: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
protected void onPreExecute() {
    count = getLastInt(activity) + 1;
    progressDialog = new ProgressDialog(activity);
    progressDialog.setMessage(activity.getString(R.string.saving_crop));
    progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    progressDialog.setIndeterminate(true);
    progressDialog.setProgressNumberFormat(null);
    progressDialog.setProgressPercentFormat(null);
    progressDialog.show();
}
 
開發者ID:enricocid,項目名稱:Gallery-example,代碼行數:11,代碼來源:SaveTools.java

示例3: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
protected void onPreExecute() {

            progressDialog = new ProgressDialog(activity);
            progressDialog.setMessage(activity.getString(R.string.applying_wallpaper));
            progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
            progressDialog.setIndeterminate(true);
            progressDialog.setProgressNumberFormat(null);
            progressDialog.setProgressPercentFormat(null);
            progressDialog.show();
        }
 
開發者ID:enricocid,項目名稱:Gallery-example,代碼行數:11,代碼來源:ApplyWallpaper.java

示例4: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
protected void onPreExecute() {

            progressDialog = new ProgressDialog(activity);
            progressDialog.setMessage(activity.getString(R.string.deleting));
            progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
            progressDialog.setIndeterminate(true);
            progressDialog.setProgressNumberFormat(null);
            progressDialog.setProgressPercentFormat(null);
            progressDialog.setCancelable(false);
            progressDialog.show();
        }
 
開發者ID:enricocid,項目名稱:Gallery-example,代碼行數:12,代碼來源:DeleteFileUtils.java


注:本文中的android.app.ProgressDialog.setProgressNumberFormat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。