android.app
Class ProgressDialog

java.lang.Object
  extended by android.app.Dialog
      extended by android.app.AlertDialog
          extended by android.app.ProgressDialog
All Implemented Interfaces:
DialogInterface, KeyEvent.Callback, View.OnCreateContextMenuListener, Window.Callback

public class ProgressDialog
extends AlertDialog


Nested Class Summary
 
Nested classes/interfaces inherited from class android.app.AlertDialog
AlertDialog.Builder
 
Nested classes/interfaces inherited from interface android.content.DialogInterface
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnShowListener
 
Field Summary
static int STYLE_HORIZONTAL
           
static int STYLE_SPINNER
           
 
Fields inherited from class android.app.AlertDialog
THEME_DEVICE_DEFAULT_DARK, THEME_DEVICE_DEFAULT_LIGHT, THEME_HOLO_DARK, THEME_HOLO_LIGHT, THEME_TRADITIONAL
 
Fields inherited from interface android.content.DialogInterface
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
 
Constructor Summary
ProgressDialog(Context context)
           
ProgressDialog(Context context, int theme)
           
 
Method Summary
 int getMax()
           
 int getProgress()
           
 int getSecondaryProgress()
           
 void incrementProgressBy(int diff)
           
 void incrementSecondaryProgressBy(int diff)
           
 boolean isIndeterminate()
           
protected  void onCreate(Bundle savedInstanceState)
           
 void onStart()
           
protected  void onStop()
           
 void setIndeterminate(boolean indeterminate)
           
 void setIndeterminateDrawable(Drawable d)
           
 void setMax(int max)
           
 void setMessage(CharSequence message)
           
 void setProgress(int value)
           
 void setProgressDrawable(Drawable d)
           
 void setProgressNumberFormat(String format)
           
 void setProgressPercentFormat(NumberFormat format)
           
 void setProgressStyle(int style)
           
 void setSecondaryProgress(int secondaryProgress)
           
static ProgressDialog show(Context context, CharSequence title, CharSequence message)
           
static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate)
           
static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable)
           
static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
           
 
Methods inherited from class android.app.AlertDialog
getButton, getListView, onKeyDown, onKeyUp, setButton, setButton, setButton, setButton, setButton2, setButton2, setButton3, setButton3, setCustomTitle, setIcon, setIcon, setIconAttribute, setInverseBackgroundForced, setTitle, setView, setView
 
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.content.DialogInterface
cancel, dismiss
 

Field Detail

STYLE_SPINNER

public static final int STYLE_SPINNER
See Also:
Constant Field Values

STYLE_HORIZONTAL

public static final int STYLE_HORIZONTAL
See Also:
Constant Field Values
Constructor Detail

ProgressDialog

public ProgressDialog(Context context)

ProgressDialog

public ProgressDialog(Context context,
                      int theme)
Method Detail

show

public static ProgressDialog show(Context context,
                                  CharSequence title,
                                  CharSequence message)

show

public static ProgressDialog show(Context context,
                                  CharSequence title,
                                  CharSequence message,
                                  boolean indeterminate)

show

public static ProgressDialog show(Context context,
                                  CharSequence title,
                                  CharSequence message,
                                  boolean indeterminate,
                                  boolean cancelable)

show

public static ProgressDialog show(Context context,
                                  CharSequence title,
                                  CharSequence message,
                                  boolean indeterminate,
                                  boolean cancelable,
                                  DialogInterface.OnCancelListener cancelListener)

onCreate

protected void onCreate(Bundle savedInstanceState)
Overrides:
onCreate in class AlertDialog

onStart

public void onStart()
Overrides:
onStart in class Dialog

onStop

protected void onStop()
Overrides:
onStop in class Dialog

setProgress

public void setProgress(int value)

setSecondaryProgress

public void setSecondaryProgress(int secondaryProgress)

getProgress

public int getProgress()

getSecondaryProgress

public int getSecondaryProgress()

getMax

public int getMax()

setMax

public void setMax(int max)

incrementProgressBy

public void incrementProgressBy(int diff)

incrementSecondaryProgressBy

public void incrementSecondaryProgressBy(int diff)

setProgressDrawable

public void setProgressDrawable(Drawable d)

setIndeterminateDrawable

public void setIndeterminateDrawable(Drawable d)

setIndeterminate

public void setIndeterminate(boolean indeterminate)

isIndeterminate

public boolean isIndeterminate()

setMessage

public void setMessage(CharSequence message)
Overrides:
setMessage in class AlertDialog

setProgressStyle

public void setProgressStyle(int style)

setProgressNumberFormat

public void setProgressNumberFormat(String format)

setProgressPercentFormat

public void setProgressPercentFormat(NumberFormat format)


Copyright © 2008-2012. All Rights Reserved.