public class ProgressBar extends _View
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ProgressBar.SavedState |
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener| Modifier and Type | Field and Description |
|---|---|
protected int |
mMaxHeight |
protected int |
mMaxWidth |
protected int |
mMinHeight |
protected int |
mMinWidth |
PRESSED_STATE_SET, SUPPORT_EMPTY_STATE_SET, SUPPORT_ENABLED_FOCUSED_SELECTED_STATE_SET, SUPPORT_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_ENABLED_FOCUSED_STATE_SET, SUPPORT_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, SUPPORT_ENABLED_SELECTED_STATE_SET, SUPPORT_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_ENABLED_STATE_SET, SUPPORT_ENABLED_WINDOW_FOCUSED_STATE_SET, SUPPORT_FOCUSED_SELECTED_STATE_SET, SUPPORT_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_FOCUSED_STATE_SET, SUPPORT_FOCUSED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, SUPPORT_PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_ENABLED_FOCUSED_STATE_SET, SUPPORT_PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_ENABLED_SELECTED_STATE_SET, SUPPORT_PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_ENABLED_STATE_SET, SUPPORT_PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_FOCUSED_SELECTED_STATE_SET, SUPPORT_PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_FOCUSED_STATE_SET, SUPPORT_PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_SELECTED_STATE_SET, SUPPORT_PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_PRESSED_STATE_SET, SUPPORT_PRESSED_WINDOW_FOCUSED_STATE_SET, SUPPORT_SELECTED_STATE_SET, SUPPORT_SELECTED_WINDOW_FOCUSED_STATE_SET, SUPPORT_WINDOW_FOCUSED_STATE_SETALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| Constructor and Description |
|---|
ProgressBar(android.content.Context context) |
ProgressBar(android.content.Context context,
android.util.AttributeSet attrs) |
ProgressBar(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
ProgressBar(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle,
int styleRes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawableStateChanged() |
protected android.graphics.drawable.Drawable |
getCurrentDrawable() |
android.graphics.drawable.Drawable |
getIndeterminateDrawable() |
android.view.animation.Interpolator |
getInterpolator() |
int |
getMax() |
int |
getProgress() |
android.graphics.drawable.Drawable |
getProgressDrawable() |
int |
getResolvedLayoutDirection() |
int |
getResolvedLayoutDirection(android.graphics.drawable.Drawable who) |
int |
getSecondaryProgress() |
void |
incrementProgressBy(int diff) |
void |
incrementSecondaryProgressBy(int diff) |
void |
invalidateDrawable(android.graphics.drawable.Drawable dr) |
boolean |
isIndeterminate() |
void |
jumpDrawablesToCurrentState() |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
protected void |
onDraw(android.graphics.Canvas canvas) |
void |
onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event) |
void |
onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onProgressRefresh(float scale,
boolean fromUser) |
void |
onRestoreInstanceState(android.os.Parcelable state) |
android.os.Parcelable |
onSaveInstanceState() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
onVisibilityChanged(_View changedView,
int visibility) |
void |
postInvalidate() |
void |
setIndeterminate(boolean indeterminate) |
void |
setIndeterminateDrawable(android.graphics.drawable.Drawable d) |
void |
setInterpolator(android.content.Context context,
int resID) |
void |
setInterpolator(android.view.animation.Interpolator interpolator) |
void |
setMax(int max) |
void |
setProgress(int progress) |
void |
setProgressDrawable(android.graphics.drawable.Drawable d) |
void |
setSecondaryProgress(int secondaryProgress) |
void |
setVisibility(int v) |
protected boolean |
verifyDrawable(android.graphics.drawable.Drawable who) |
getAlpha, getMeasuredStateInt, getTranslationX, getTranslationY, setAlpha, setTranslationX, setTranslationY, startActionMode, supportResolveSize, supportResolveSizeAndStateaddChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewsWithText, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, getAccessibilityNodeProvider, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onDisplayHint, onDragEvent, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPopulateAccessibilityEvent, onScreenStateChanged, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscheduleDrawable, unscheduleDrawableprotected int mMinWidth
protected int mMaxWidth
protected int mMinHeight
protected int mMaxHeight
public ProgressBar(android.content.Context context)
public ProgressBar(android.content.Context context,
android.util.AttributeSet attrs)
public ProgressBar(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public ProgressBar(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle,
int styleRes)
protected void drawableStateChanged()
drawableStateChanged in class android.view.Viewprotected android.graphics.drawable.Drawable getCurrentDrawable()
public android.graphics.drawable.Drawable getIndeterminateDrawable()
public android.view.animation.Interpolator getInterpolator()
public int getMax()
public int getProgress()
public android.graphics.drawable.Drawable getProgressDrawable()
public int getResolvedLayoutDirection()
public int getResolvedLayoutDirection(android.graphics.drawable.Drawable who)
public int getSecondaryProgress()
public final void incrementProgressBy(int diff)
public final void incrementSecondaryProgressBy(int diff)
public void invalidateDrawable(android.graphics.drawable.Drawable dr)
invalidateDrawable in interface android.graphics.drawable.Drawable.CallbackinvalidateDrawable in class android.view.Viewpublic boolean isIndeterminate()
public void jumpDrawablesToCurrentState()
jumpDrawablesToCurrentState in class android.view.Viewprotected void onAttachedToWindow()
onAttachedToWindow in class android.view.Viewprotected void onDetachedFromWindow()
onDetachedFromWindow in class android.view.Viewprotected void onDraw(android.graphics.Canvas canvas)
onDraw in class android.view.Viewpublic void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)
onInitializeAccessibilityEvent in class android.view.Viewpublic void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info)
onInitializeAccessibilityNodeInfo in class android.view.Viewprotected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
onMeasure in class android.view.Viewprotected void onProgressRefresh(float scale,
boolean fromUser)
public void onRestoreInstanceState(android.os.Parcelable state)
onRestoreInstanceState in class android.view.Viewpublic android.os.Parcelable onSaveInstanceState()
onSaveInstanceState in class android.view.Viewprotected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
onSizeChanged in class android.view.Viewpublic void onVisibilityChanged(_View changedView, int visibility)
onVisibilityChanged in class _Viewpublic void postInvalidate()
postInvalidate in class android.view.Viewpublic void setIndeterminate(boolean indeterminate)
public void setIndeterminateDrawable(android.graphics.drawable.Drawable d)
public void setInterpolator(android.content.Context context,
int resID)
public void setInterpolator(android.view.animation.Interpolator interpolator)
public void setMax(int max)
public void setProgress(int progress)
public void setProgressDrawable(android.graphics.drawable.Drawable d)
public void setSecondaryProgress(int secondaryProgress)
public void setVisibility(int v)
setVisibility in class _Viewprotected boolean verifyDrawable(android.graphics.drawable.Drawable who)
verifyDrawable in class android.view.ViewCopyright © 2012. All Rights Reserved.