List of usage examples for android.app ProgressDialog setSecondaryProgress
public void setSecondaryProgress(int secondaryProgress)
From source file:jp.co.noxi.app.NXProgressDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { final ProgressDialog dialog = mProgressDialog = new ProgressDialog(getActivity()); dialog.setProgressStyle(mStyle); dialog.setIndeterminate(mIndeterminate); if (mMax > 0) { dialog.setMax(mMax);//from ww w .j a v a 2 s .c om } if (mProgressVal > 0) { dialog.setProgress(mProgressVal); } if (mSecondaryProgressVal > 0) { dialog.setSecondaryProgress(mSecondaryProgressVal); } if (mMessage != null) { dialog.setMessage(mMessage); } if (mFormat != null) { dialog.setProgressNumberFormat(mFormat); } return dialog; } else { final ProgressDialogGB dialog = mProgressDialogGB = new ProgressDialogGB(getActivity()); dialog.setProgressStyle(mStyle); dialog.setIndeterminate(mIndeterminate); if (mMax > 0) { dialog.setMax(mMax); } if (mProgressVal > 0) { dialog.setProgress(mProgressVal); } if (mSecondaryProgressVal > 0) { dialog.setSecondaryProgress(mSecondaryProgressVal); } if (mMessage != null) { dialog.setMessage(mMessage); } if (mFormat != null) { dialog.setProgressNumberFormat(mFormat); } return dialog; } }