List of usage examples for android.app ProgressDialog STYLE_HORIZONTAL
int STYLE_HORIZONTAL
To view the source code for android.app ProgressDialog STYLE_HORIZONTAL.
Click Source Link
From source file:com.example.minhttruong.parsedemo.widget.ProgressFrag.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity(), ProgressDialog.STYLE_HORIZONTAL); dialog.setMessage(mMsg);/*from ww w . j a v a 2 s. c om*/ return dialog; }
From source file:net.evecom.android.util.HttpMultipartPost.java
@Override protected void onPreExecute() { pd = new ProgressDialog(context); pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); pd.setMessage("Uploading Picture..."); pd.setCancelable(false);//from w w w . j a va 2s .c om pd.show(); }
From source file:org.pixmob.freemobile.netstat.ui.ExportDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setMessage(getString(R.string.exporting_data)); dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); dialog.setIndeterminate(true);/*from ww w. jav a2s. c o m*/ dialog.setCancelable(false); return dialog; }
From source file:com.github.yuukis.businessmap.app.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { boolean cancelable = getArguments().getBoolean(CANCELABLE, false); setCancelable(cancelable);// w ww. jav a 2 s .c o m String title = getArguments().getString(TITLE); String message = getArguments().getString(MESSAGE); ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setTitle(title); dialog.setMessage(message); dialog.setIndeterminate(false); dialog.setCanceledOnTouchOutside(false); dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); dialog.setMax(getArguments().getInt(MAX)); return dialog; }
From source file:at.tomtasche.reader.ui.widget.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { progressDialog = new ProgressDialog(getActivity()); int title;/*from w w w. j a va 2 s . co m*/ if (upload) { //title = R.string.dialog_uploading_title; } else { //title = R.string.dialog_loading_title; } //progressDialog.setTitle(getString("Loading")); progressDialog.setTitle("Loading"); //progressDialog.setMessage(getString(R.string.dialog_loading_message)); progressDialog.setCancelable(false); progressDialog.setIndeterminate(upload); if (!upload) { progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); progressDialog.setMax(100); progressDialog.setProgress(0); } setCancelable(false); return progressDialog; }
From source file:com.xargsgrep.portknocker.asynctask.KnockerAsyncTask.java
@Override protected void onPreExecute() { FragmentManager fragmentManager = activity.getSupportFragmentManager(); FragmentTransaction ft = fragmentManager.beginTransaction(); Fragment prev = fragmentManager.findFragmentByTag(ProgressDialogFragment.TAG); if (prev != null) ft.remove(prev);//from w ww. ja v a 2 s.co m ft.addToBackStack(null); ProgressDialogFragment dialogFragment = ProgressDialogFragment.newInstance(this, activity.getString(R.string.progress_dialog_sending_packets), false, ProgressDialog.STYLE_HORIZONTAL, progressMax); dialogFragment.setCancelable(true); dialogFragment.show(ft, ProgressDialogFragment.TAG); }
From source file:ru.orangesoftware.financisto2.export.flowzr.FlowzrSyncTask.java
public FlowzrSyncTask(FlowzrSyncActivity flowzrSyncActivity, FlowzrSyncEngine _flowzrSyncEngine, FlowzrSyncOptions options, DefaultHttpClient pHttp_client) { this.options = options; this.http_client = pHttp_client; this.context = flowzrSyncActivity; this.flowzrSyncActivity = flowzrSyncActivity; this.flowzrSync = _flowzrSyncEngine; mProgress = new ProgressDialog(this.flowzrSyncActivity); mProgress.setIcon(R.drawable.icon);//from w w w. j av a2s .c o m mProgress.setTitle(flowzrSyncActivity.getString(R.string.flowzr_sync)); mProgress.setMessage(flowzrSyncActivity.getString(R.string.flowzr_sync_inprogress)); mProgress.setCancelable(true); mProgress.setCanceledOnTouchOutside(false); mProgress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); try { mProgress.show(); } catch (Exception e) { Log.e(TAG, "avoid a leaked window"); } }
From source file:com.openerp.util.OEBinaryDownloadHelper.java
public void downloadBinary(int id, OEDatabase db, Context context) { Log.d(TAG, "OEBinaryDownloadHelper->downloadBinary()"); mContext = context;//from w w w . j av a 2 s . c om try { if (OpenERPServerConnection.isNetworkAvailable(mContext)) { mProgressDialog = new ProgressDialog(mContext); mProgressDialog.setMessage("Downloading..."); mProgressDialog.setIndeterminate(true); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgressDialog.setCancelable(true); downloadTask = new DownloadTask(db); downloadTask.execute(id); } else { Toast.makeText(mContext, "Unable to connect server !", Toast.LENGTH_LONG).show(); } } catch (Exception e) { e.printStackTrace(); } }
From source file:com.android.gallery3d.ui.MenuExecutor.java
private static ProgressDialog createProgressDialog(Context context, int titleId, int progressMax) { ProgressDialog dialog = new ProgressDialog(context); dialog.setTitle(titleId);/* www . j a v a2 s . c o m*/ dialog.setMax(progressMax); dialog.setCancelable(false); dialog.setIndeterminate(false); if (progressMax > 1) { dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); } return dialog; }
From source file:free.rm.skytube.gui.businessobjects.updates.UpgradeAppTask.java
@Override protected void onPreExecute() { // setup the download dialog and display it downloadDialog = new ProgressDialog(context); downloadDialog.setMessage(context.getString(R.string.downloading)); downloadDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); downloadDialog.setProgress(0);/*from w ww.ja va2 s. c o m*/ downloadDialog.setMax(100); downloadDialog.setCancelable(false); downloadDialog.setProgressNumberFormat(null); downloadDialog.show(); }