Back to Fresco

SimpleDraweeView

docs/javadoc/reference/com/facebook/drawee/view/SimpleDraweeView.html

3.6.055.3 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Packages | Classes

Summary: Inherited Constants | Inherited Fields | Ctors | Methods | Protected Methods | Inherited Methods | [Expand All]

public class

SimpleDraweeView

extends GenericDraweeView

| java.lang.Object | | ↳ | android.view.View | | | ↳ | android.widget.ImageView | | | | ↳ | com.facebook.drawee.view.DraweeView<DH extends com.facebook.drawee.interfaces.DraweeHierarchy> | | | | | ↳ | com.facebook.drawee.view.GenericDraweeView | | | | | | ↳ | com.facebook.drawee.view.SimpleDraweeView |

Class Overview

This view takes a uri as input and internally builds and sets a controller.

This class must be statically initialized in order to be used. If you are using the Fresco image pipeline, use initialize(Context) to do this.

Summary

| [Expand] Inherited Constants | | --- | | From class android.view.View

| int | ACCESSIBILITY_LIVE_REGION_ASSERTIVE | | | int | ACCESSIBILITY_LIVE_REGION_NONE | | | int | ACCESSIBILITY_LIVE_REGION_POLITE | | | int | DRAG_FLAG_GLOBAL | | | int | DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION | | | int | DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION | | | int | DRAG_FLAG_GLOBAL_URI_READ | | | int | DRAG_FLAG_GLOBAL_URI_WRITE | | | int | DRAG_FLAG_OPAQUE | | | int | DRAWING_CACHE_QUALITY_AUTO | | | int | DRAWING_CACHE_QUALITY_HIGH | | | int | DRAWING_CACHE_QUALITY_LOW | | | int | FIND_VIEWS_WITH_CONTENT_DESCRIPTION | | | int | FIND_VIEWS_WITH_TEXT | | | int | FOCUSABLES_ALL | | | int | FOCUSABLES_TOUCH_MODE | | | int | FOCUS_BACKWARD | | | int | FOCUS_DOWN | | | int | FOCUS_FORWARD | | | int | FOCUS_LEFT | | | int | FOCUS_RIGHT | | | int | FOCUS_UP | | | int | GONE | | | int | HAPTIC_FEEDBACK_ENABLED | | | int | IMPORTANT_FOR_ACCESSIBILITY_AUTO | | | int | IMPORTANT_FOR_ACCESSIBILITY_NO | | | int | IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS | | | int | IMPORTANT_FOR_ACCESSIBILITY_YES | | | int | INVISIBLE | | | int | KEEP_SCREEN_ON | | | int | LAYER_TYPE_HARDWARE | | | int | LAYER_TYPE_NONE | | | int | LAYER_TYPE_SOFTWARE | | | int | LAYOUT_DIRECTION_INHERIT | | | int | LAYOUT_DIRECTION_LOCALE | | | int | LAYOUT_DIRECTION_LTR | | | int | LAYOUT_DIRECTION_RTL | | | int | MEASURED_HEIGHT_STATE_SHIFT | | | int | MEASURED_SIZE_MASK | | | int | MEASURED_STATE_MASK | | | int | MEASURED_STATE_TOO_SMALL | | | int | NO_ID | | | int | OVER_SCROLL_ALWAYS | | | int | OVER_SCROLL_IF_CONTENT_SCROLLS | | | int | OVER_SCROLL_NEVER | | | int | SCREEN_STATE_OFF | | | int | SCREEN_STATE_ON | | | int | SCROLLBARS_INSIDE_INSET | | | int | SCROLLBARS_INSIDE_OVERLAY | | | int | SCROLLBARS_OUTSIDE_INSET | | | int | SCROLLBARS_OUTSIDE_OVERLAY | | | int | SCROLLBAR_POSITION_DEFAULT | | | int | SCROLLBAR_POSITION_LEFT | | | int | SCROLLBAR_POSITION_RIGHT | | | int | SCROLL_AXIS_HORIZONTAL | | | int | SCROLL_AXIS_NONE | | | int | SCROLL_AXIS_VERTICAL | | | int | SCROLL_INDICATOR_BOTTOM | | | int | SCROLL_INDICATOR_END | | | int | SCROLL_INDICATOR_LEFT | | | int | SCROLL_INDICATOR_RIGHT | | | int | SCROLL_INDICATOR_START | | | int | SCROLL_INDICATOR_TOP | | | int | SOUND_EFFECTS_ENABLED | | | int | STATUS_BAR_HIDDEN | | | int | STATUS_BAR_VISIBLE | | | int | SYSTEM_UI_FLAG_FULLSCREEN | | | int | SYSTEM_UI_FLAG_HIDE_NAVIGATION | | | int | SYSTEM_UI_FLAG_IMMERSIVE | | | int | SYSTEM_UI_FLAG_IMMERSIVE_STICKY | | | int | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | | | int | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | | | int | SYSTEM_UI_FLAG_LAYOUT_STABLE | | | int | SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | | | int | SYSTEM_UI_FLAG_LOW_PROFILE | | | int | SYSTEM_UI_FLAG_VISIBLE | | | int | SYSTEM_UI_LAYOUT_FLAGS | | | int | TEXT_ALIGNMENT_CENTER | | | int | TEXT_ALIGNMENT_GRAVITY | | | int | TEXT_ALIGNMENT_INHERIT | | | int | TEXT_ALIGNMENT_TEXT_END | | | int | TEXT_ALIGNMENT_TEXT_START | | | int | TEXT_ALIGNMENT_VIEW_END | | | int | TEXT_ALIGNMENT_VIEW_START | | | int | TEXT_DIRECTION_ANY_RTL | | | int | TEXT_DIRECTION_FIRST_STRONG | | | int | TEXT_DIRECTION_FIRST_STRONG_LTR | | | int | TEXT_DIRECTION_FIRST_STRONG_RTL | | | int | TEXT_DIRECTION_INHERIT | | | int | TEXT_DIRECTION_LOCALE | | | int | TEXT_DIRECTION_LTR | | | int | TEXT_DIRECTION_RTL | | | String | VIEW_LOG_TAG | | | int | VISIBLE | |

|

| [Expand] Inherited Fields | | --- | | From class android.view.View

| public static final Property<View, Float> | ALPHA | | | protected static final int[] | EMPTY_STATE_SET | | | protected static final int[] | ENABLED_FOCUSED_SELECTED_STATE_SET | | | protected static final int[] | ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | ENABLED_FOCUSED_STATE_SET | | | protected static final int[] | ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | ENABLED_SELECTED_STATE_SET | | | protected static final int[] | ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | ENABLED_STATE_SET | | | protected static final int[] | ENABLED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | FOCUSED_SELECTED_STATE_SET | | | protected static final int[] | FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | FOCUSED_STATE_SET | | | protected static final int[] | FOCUSED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_SELECTED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_STATE_SET | | | protected static final int[] | PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_FOCUSED_SELECTED_STATE_SET | | | protected static final int[] | PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_SELECTED_STATE_SET | | | protected static final int[] | PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET | | | protected static final int[] | PRESSED_STATE_SET | | | protected static final int[] | PRESSED_WINDOW_FOCUSED_STATE_SET | | | public static final Property<View, Float> | ROTATION | | | public static final Property<View, Float> | ROTATION_X | | | public static final Property<View, Float> | ROTATION_Y | | | public static final Property<View, Float> | SCALE_X | | | public static final Property<View, Float> | SCALE_Y | | | protected static final int[] | SELECTED_STATE_SET | | | protected static final int[] | SELECTED_WINDOW_FOCUSED_STATE_SET | | | public static final Property<View, Float> | TRANSLATION_X | | | public static final Property<View, Float> | TRANSLATION_Y | | | public static final Property<View, Float> | TRANSLATION_Z | | | protected static final int[] | WINDOW_FOCUSED_STATE_SET | | | public static final Property<View, Float> | X | | | public static final Property<View, Float> | Y | | | public static final Property<View, Float> | Z | |

|

Public Constructors
Public Methods
static void
Initializes SimpleDraweeView with supplier of Drawee controller builders.
void
Sets the actual image resource to the given resource ID.
void
Sets the actual image resource to the given resource ID.
void
Sets the image request
void
This method is deprecated. Use setController(DraweeController) instead.
void
Displays an image given by the uri.
void
Displays an image given by the uri.
void
Displays an image given by the uri string.
void
Displays an image given by the uri string.
static void
Shuts SimpleDraweeView down.
Protected Methods
AbstractDraweeControllerBuilder

| [Expand] Inherited Methods | | --- | | From class com.facebook.drawee.view.GenericDraweeView

| void | inflateHierarchy(Context context, AttributeSet attrs) |

| | From class com.facebook.drawee.view.DraweeView

| void | doAttach() Does the actual work of attaching. | | void | doDetach() Does the actual work of detaching. | | float | getAspectRatio() Gets the desired aspect ratio (w/h). | | DraweeController | getController() Gets the controller if set, null otherwise. | | DH | getHierarchy() Gets the hierarchy if set, throws NPE otherwise. | | Drawable | getTopLevelDrawable() Gets the top-level drawable if hierarchy is set, null otherwise. | | boolean | hasController() Returns whether the controller is set or not. | | boolean | hasHierarchy() Returns whether the hierarchy is set or not. | | void | onAttach() Called by the system to attach. | | void | onAttachedToWindow() | | void | onDetach() Called by the system to detach. | | void | onDetachedFromWindow() | | void | onFinishTemporaryDetach() | | void | onMeasure(int widthMeasureSpec, int heightMeasureSpec) | | void | onStartTemporaryDetach() | | boolean | onTouchEvent(MotionEvent event) | | void | onVisibilityChanged(View changedView, int visibility) | | void | setAspectRatio(float aspectRatio) Sets the desired aspect ratio (w/h). | | void | setController(DraweeController draweeController) Sets the controller. | | static void | setGlobalLegacyVisibilityHandlingEnabled(boolean legacyVisibilityHandlingEnabled) | | void | setHierarchy(DH hierarchy) Sets the hierarchy. | | void | setImageBitmap(Bitmap bm) This method is deprecated. Use setController(DraweeController) instead. | | void | setImageDrawable(Drawable drawable) This method is deprecated. Use setController(DraweeController) instead. | | void | setImageResource(int resId) This method is deprecated. Use setController(DraweeController) instead. | | void | setImageURI(Uri uri) This method is deprecated. Use setController(DraweeController) instead. | | void | setLegacyVisibilityHandlingEnabled(boolean legacyVisibilityHandlingEnabled) | | String | toString() |

| | From class android.widget.ImageView

| final void | clearColorFilter() | | void | drawableHotspotChanged(float arg0, float arg1) | | void | drawableStateChanged() | | CharSequence | getAccessibilityClassName() | | boolean | getAdjustViewBounds() | | int | getBaseline() | | boolean | getBaselineAlignBottom() | | ColorFilter | getColorFilter() | | boolean | getCropToPadding() | | Drawable | getDrawable() | | int | getImageAlpha() | | Matrix | getImageMatrix() | | ColorStateList | getImageTintList() | | PorterDuff.Mode | getImageTintMode() | | int | getMaxHeight() | | int | getMaxWidth() | | ImageView.ScaleType | getScaleType() | | boolean | hasOverlappingRendering() | | void | invalidateDrawable(Drawable arg0) | | boolean | isOpaque() | | void | jumpDrawablesToCurrentState() | | void | onAttachedToWindow() | | int[] | onCreateDrawableState(int arg0) | | void | onDetachedFromWindow() | | void | onDraw(Canvas arg0) | | void | onMeasure(int arg0, int arg1) | | void | onRtlPropertiesChanged(int arg0) | | void | onVisibilityAggregated(boolean arg0) | | void | setAdjustViewBounds(boolean arg0) | | void | setAlpha(int arg0) | | void | setBaseline(int arg0) | | void | setBaselineAlignBottom(boolean arg0) | | final void | setColorFilter(int arg0, PorterDuff.Mode arg1) | | void | setColorFilter(ColorFilter arg0) | | final void | setColorFilter(int arg0) | | void | setCropToPadding(boolean arg0) | | boolean | setFrame(int arg0, int arg1, int arg2, int arg3) | | void | setImageAlpha(int arg0) | | void | setImageBitmap(Bitmap arg0) | | void | setImageDrawable(Drawable arg0) | | void | setImageIcon(Icon arg0) | | void | setImageLevel(int arg0) | | void | setImageMatrix(Matrix arg0) | | void | setImageResource(int arg0) | | void | setImageState(int[] arg0, boolean arg1) | | void | setImageTintList(ColorStateList arg0) | | void | setImageTintMode(PorterDuff.Mode arg0) | | void | setImageURI(Uri arg0) | | void | setMaxHeight(int arg0) | | void | setMaxWidth(int arg0) | | void | setScaleType(ImageView.ScaleType arg0) | | void | setSelected(boolean arg0) | | void | setVisibility(int arg0) | | boolean | verifyDrawable(Drawable arg0) |

| | From class android.view.View

| void | addChildrenForAccessibility(ArrayList<View> arg0) | | void | addFocusables(ArrayList<View> arg0, int arg1) | | void | addFocusables(ArrayList<View> arg0, int arg1, int arg2) | | void | addOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0) | | void | addOnLayoutChangeListener(View.OnLayoutChangeListener arg0) | | void | addTouchables(ArrayList<View> arg0) | | ViewPropertyAnimator | animate() | | void | announceForAccessibility(CharSequence arg0) | | boolean | awakenScrollBars(int arg0, boolean arg1) | | boolean | awakenScrollBars(int arg0) | | boolean | awakenScrollBars() | | void | bringToFront() | | void | buildDrawingCache(boolean arg0) | | void | buildDrawingCache() | | void | buildLayer() | | boolean | callOnClick() | | boolean | canResolveLayoutDirection() | | boolean | canResolveTextAlignment() | | boolean | canResolveTextDirection() | | boolean | canScrollHorizontally(int arg0) | | boolean | canScrollVertically(int arg0) | | final void | cancelDragAndDrop() | | void | cancelLongPress() | | final void | cancelPendingInputEvents() | | boolean | checkInputConnectionProxy(View arg0) | | void | clearAnimation() | | void | clearFocus() | | static int | combineMeasuredStates(int arg0, int arg1) | | int | computeHorizontalScrollExtent() | | int | computeHorizontalScrollOffset() | | int | computeHorizontalScrollRange() | | void | computeScroll() | | WindowInsets | computeSystemWindowInsets(WindowInsets arg0, Rect arg1) | | int | computeVerticalScrollExtent() | | int | computeVerticalScrollOffset() | | int | computeVerticalScrollRange() | | AccessibilityNodeInfo | createAccessibilityNodeInfo() | | void | createContextMenu(ContextMenu arg0) | | void | destroyDrawingCache() | | WindowInsets | dispatchApplyWindowInsets(WindowInsets arg0) | | void | dispatchConfigurationChanged(Configuration arg0) | | void | dispatchDisplayHint(int arg0) | | boolean | dispatchDragEvent(DragEvent arg0) | | void | dispatchDraw(Canvas arg0) | | void | dispatchDrawableHotspotChanged(float arg0, float arg1) | | void | dispatchFinishTemporaryDetach() | | boolean | dispatchGenericFocusedEvent(MotionEvent arg0) | | boolean | dispatchGenericMotionEvent(MotionEvent arg0) | | boolean | dispatchGenericPointerEvent(MotionEvent arg0) | | boolean | dispatchHoverEvent(MotionEvent arg0) | | boolean | dispatchKeyEvent(KeyEvent arg0) | | boolean | dispatchKeyEventPreIme(KeyEvent arg0) | | boolean | dispatchKeyShortcutEvent(KeyEvent arg0) | | boolean | dispatchNestedFling(float arg0, float arg1, boolean arg2) | | boolean | dispatchNestedPreFling(float arg0, float arg1) | | boolean | dispatchNestedPrePerformAccessibilityAction(int arg0, Bundle arg1) | | boolean | dispatchNestedPreScroll(int arg0, int arg1, int[] arg2, int[] arg3) | | boolean | dispatchNestedScroll(int arg0, int arg1, int arg2, int arg3, int[] arg4) | | boolean | dispatchPopulateAccessibilityEvent(AccessibilityEvent arg0) | | void | dispatchProvideStructure(ViewStructure arg0) | | void | dispatchRestoreInstanceState(SparseArray<Parcelable> arg0) | | void | dispatchSaveInstanceState(SparseArray<Parcelable> arg0) | | void | dispatchSetActivated(boolean arg0) | | void | dispatchSetPressed(boolean arg0) | | void | dispatchSetSelected(boolean arg0) | | void | dispatchStartTemporaryDetach() | | void | dispatchSystemUiVisibilityChanged(int arg0) | | boolean | dispatchTouchEvent(MotionEvent arg0) | | boolean | dispatchTrackballEvent(MotionEvent arg0) | | boolean | dispatchUnhandledMove(View arg0, int arg1) | | void | dispatchVisibilityChanged(View arg0, int arg1) | | void | dispatchWindowFocusChanged(boolean arg0) | | void | dispatchWindowSystemUiVisiblityChanged(int arg0) | | void | dispatchWindowVisibilityChanged(int arg0) | | void | draw(Canvas arg0) | | void | drawableHotspotChanged(float arg0, float arg1) | | void | drawableStateChanged() | | View | findFocus() | | final View | findViewById(int arg0) | | final View | findViewWithTag(Object arg0) | | void | findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2) | | boolean | fitSystemWindows(Rect arg0) | | View | focusSearch(int arg0) | | void | forceHasOverlappingRendering(boolean arg0) | | void | forceLayout() | | static int | generateViewId() | | CharSequence | getAccessibilityClassName() | | int | getAccessibilityLiveRegion() | | AccessibilityNodeProvider | getAccessibilityNodeProvider() | | int | getAccessibilityTraversalAfter() | | int | getAccessibilityTraversalBefore() | | float | getAlpha() | | Animation | getAnimation() | | IBinder | getApplicationWindowToken() | | Drawable | getBackground() | | ColorStateList | getBackgroundTintList() | | PorterDuff.Mode | getBackgroundTintMode() | | int | getBaseline() | | final int | getBottom() | | float | getBottomFadingEdgeStrength() | | int | getBottomPaddingOffset() | | float | getCameraDistance() | | boolean | getClipBounds(Rect arg0) | | Rect | getClipBounds() | | final boolean | getClipToOutline() | | CharSequence | getContentDescription() | | final Context | getContext() | | ContextMenu.ContextMenuInfo | getContextMenuInfo() | | static int | getDefaultSize(int arg0, int arg1) | | Display | getDisplay() | | final int[] | getDrawableState() | | Bitmap | getDrawingCache() | | Bitmap | getDrawingCache(boolean arg0) | | int | getDrawingCacheBackgroundColor() | | int | getDrawingCacheQuality() | | void | getDrawingRect(Rect arg0) | | long | getDrawingTime() | | float | getElevation() | | boolean | getFilterTouchesWhenObscured() | | boolean | getFitsSystemWindows() | | ArrayList<View> | getFocusables(int arg0) | | void | getFocusedRect(Rect arg0) | | Drawable | getForeground() | | int | getForegroundGravity() | | ColorStateList | getForegroundTintList() | | PorterDuff.Mode | getForegroundTintMode() | | final boolean | getGlobalVisibleRect(Rect arg0) | | boolean | getGlobalVisibleRect(Rect arg0, Point arg1) | | Handler | getHandler() | | final boolean | getHasOverlappingRendering() | | final int | getHeight() | | void | getHitRect(Rect arg0) | | int | getHorizontalFadingEdgeLength() | | int | getHorizontalScrollbarHeight() | | int | getId() | | int | getImportantForAccessibility() | | boolean | getKeepScreenOn() | | KeyEvent.DispatcherState | getKeyDispatcherState() | | int | getLabelFor() | | int | getLayerType() | | int | getLayoutDirection() | | ViewGroup.LayoutParams | getLayoutParams() | | final int | getLeft() | | float | getLeftFadingEdgeStrength() | | int | getLeftPaddingOffset() | | final boolean | getLocalVisibleRect(Rect arg0) | | void | getLocationInWindow(int[] arg0) | | void | getLocationOnScreen(int[] arg0) | | Matrix | getMatrix() | | final int | getMeasuredHeight() | | final int | getMeasuredHeightAndState() | | final int | getMeasuredState() | | final int | getMeasuredWidth() | | final int | getMeasuredWidthAndState() | | int | getMinimumHeight() | | int | getMinimumWidth() | | int | getNextFocusDownId() | | int | getNextFocusForwardId() | | int | getNextFocusLeftId() | | int | getNextFocusRightId() | | int | getNextFocusUpId() | | View.OnFocusChangeListener | getOnFocusChangeListener() | | ViewOutlineProvider | getOutlineProvider() | | int | getOverScrollMode() | | ViewOverlay | getOverlay() | | int | getPaddingBottom() | | int | getPaddingEnd() | | int | getPaddingLeft() | | int | getPaddingRight() | | int | getPaddingStart() | | int | getPaddingTop() | | final ViewParent | getParent() | | ViewParent | getParentForAccessibility() | | float | getPivotX() | | float | getPivotY() | | PointerIcon | getPointerIcon() | | Resources | getResources() | | final boolean | getRevealOnFocusHint() | | final int | getRight() | | float | getRightFadingEdgeStrength() | | int | getRightPaddingOffset() | | View | getRootView() | | WindowInsets | getRootWindowInsets() | | float | getRotation() | | float | getRotationX() | | float | getRotationY() | | float | getScaleX() | | float | getScaleY() | | int | getScrollBarDefaultDelayBeforeFade() | | int | getScrollBarFadeDuration() | | int | getScrollBarSize() | | int | getScrollBarStyle() | | int | getScrollIndicators() | | final int | getScrollX() | | final int | getScrollY() | | int | getSolidColor() | | StateListAnimator | getStateListAnimator() | | int | getSuggestedMinimumHeight() | | int | getSuggestedMinimumWidth() | | int | getSystemUiVisibility() | | Object | getTag() | | Object | getTag(int arg0) | | int | getTextAlignment() | | int | getTextDirection() | | final int | getTop() | | float | getTopFadingEdgeStrength() | | int | getTopPaddingOffset() | | TouchDelegate | getTouchDelegate() | | ArrayList<View> | getTouchables() | | String | getTransitionName() | | float | getTranslationX() | | float | getTranslationY() | | float | getTranslationZ() | | int | getVerticalFadingEdgeLength() | | int | getVerticalScrollbarPosition() | | int | getVerticalScrollbarWidth() | | ViewTreeObserver | getViewTreeObserver() | | int | getVisibility() | | final int | getWidth() | | int | getWindowAttachCount() | | WindowId | getWindowId() | | int | getWindowSystemUiVisibility() | | IBinder | getWindowToken() | | int | getWindowVisibility() | | void | getWindowVisibleDisplayFrame(Rect arg0) | | float | getX() | | float | getY() | | float | getZ() | | boolean | hasFocus() | | boolean | hasFocusable() | | boolean | hasNestedScrollingParent() | | boolean | hasOnClickListeners() | | boolean | hasOverlappingRendering() | | boolean | hasTransientState() | | boolean | hasWindowFocus() | | static View | inflate(Context arg0, int arg1, ViewGroup arg2) | | void | invalidate() | | void | invalidate(Rect arg0) | | void | invalidate(int arg0, int arg1, int arg2, int arg3) | | void | invalidateDrawable(Drawable arg0) | | void | invalidateOutline() | | boolean | isAccessibilityFocused() | | boolean | isActivated() | | boolean | isAttachedToWindow() | | boolean | isClickable() | | boolean | isContextClickable() | | boolean | isDirty() | | boolean | isDrawingCacheEnabled() | | boolean | isDuplicateParentStateEnabled() | | boolean | isEnabled() | | final boolean | isFocusable() | | final boolean | isFocusableInTouchMode() | | boolean | isFocused() | | boolean | isHapticFeedbackEnabled() | | boolean | isHardwareAccelerated() | | boolean | isHorizontalFadingEdgeEnabled() | | boolean | isHorizontalScrollBarEnabled() | | boolean | isHovered() | | boolean | isImportantForAccessibility() | | boolean | isInEditMode() | | boolean | isInLayout() | | boolean | isInTouchMode() | | boolean | isLaidOut() | | boolean | isLayoutDirectionResolved() | | boolean | isLayoutRequested() | | boolean | isLongClickable() | | boolean | isNestedScrollingEnabled() | | boolean | isOpaque() | | boolean | isPaddingOffsetRequired() | | boolean | isPaddingRelative() | | boolean | isPressed() | | boolean | isSaveEnabled() | | boolean | isSaveFromParentEnabled() | | boolean | isScrollContainer() | | boolean | isScrollbarFadingEnabled() | | boolean | isSelected() | | boolean | isShown() | | boolean | isSoundEffectsEnabled() | | final boolean | isTemporarilyDetached() | | boolean | isTextAlignmentResolved() | | boolean | isTextDirectionResolved() | | boolean | isVerticalFadingEdgeEnabled() | | boolean | isVerticalScrollBarEnabled() | | void | jumpDrawablesToCurrentState() | | void | layout(int arg0, int arg1, int arg2, int arg3) | | final void | measure(int arg0, int arg1) | | static int[] | mergeDrawableStates(int[] arg0, int[] arg1) | | void | offsetLeftAndRight(int arg0) | | void | offsetTopAndBottom(int arg0) | | void | onAnimationEnd() | | void | onAnimationStart() | | WindowInsets | onApplyWindowInsets(WindowInsets arg0) | | void | onAttachedToWindow() | | void | onCancelPendingInputEvents() | | boolean | onCheckIsTextEditor() | | void | onConfigurationChanged(Configuration arg0) | | void | onCreateContextMenu(ContextMenu arg0) | | int[] | onCreateDrawableState(int arg0) | | InputConnection | onCreateInputConnection(EditorInfo arg0) | | void | onDetachedFromWindow() | | void | onDisplayHint(int arg0) | | boolean | onDragEvent(DragEvent arg0) | | void | onDraw(Canvas arg0) | | void | onDrawForeground(Canvas arg0) | | final void | onDrawScrollBars(Canvas arg0) | | boolean | onFilterTouchEventForSecurity(MotionEvent arg0) | | void | onFinishInflate() | | void | onFinishTemporaryDetach() | | void | onFocusChanged(boolean arg0, int arg1, Rect arg2) | | boolean | onGenericMotionEvent(MotionEvent arg0) | | void | onHoverChanged(boolean arg0) | | boolean | onHoverEvent(MotionEvent arg0) | | void | onInitializeAccessibilityEvent(AccessibilityEvent arg0) | | void | onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo arg0) | | boolean | onKeyDown(int arg0, KeyEvent arg1) | | boolean | onKeyLongPress(int arg0, KeyEvent arg1) | | boolean | onKeyMultiple(int arg0, int arg1, KeyEvent arg2) | | boolean | onKeyPreIme(int arg0, KeyEvent arg1) | | boolean | onKeyShortcut(int arg0, KeyEvent arg1) | | boolean | onKeyUp(int arg0, KeyEvent arg1) | | void | onLayout(boolean arg0, int arg1, int arg2, int arg3, int arg4) | | void | onMeasure(int arg0, int arg1) | | void | onOverScrolled(int arg0, int arg1, boolean arg2, boolean arg3) | | void | onPopulateAccessibilityEvent(AccessibilityEvent arg0) | | void | onProvideStructure(ViewStructure arg0) | | void | onProvideVirtualStructure(ViewStructure arg0) | | PointerIcon | onResolvePointerIcon(MotionEvent arg0, int arg1) | | void | onRestoreInstanceState(Parcelable arg0) | | void | onRtlPropertiesChanged(int arg0) | | Parcelable | onSaveInstanceState() | | void | onScreenStateChanged(int arg0) | | void | onScrollChanged(int arg0, int arg1, int arg2, int arg3) | | boolean | onSetAlpha(int arg0) | | void | onSizeChanged(int arg0, int arg1, int arg2, int arg3) | | void | onStartTemporaryDetach() | | boolean | onTouchEvent(MotionEvent arg0) | | boolean | onTrackballEvent(MotionEvent arg0) | | void | onVisibilityAggregated(boolean arg0) | | void | onVisibilityChanged(View arg0, int arg1) | | void | onWindowFocusChanged(boolean arg0) | | void | onWindowSystemUiVisibilityChanged(int arg0) | | void | onWindowVisibilityChanged(int arg0) | | boolean | overScrollBy(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8) | | boolean | performAccessibilityAction(int arg0, Bundle arg1) | | boolean | performClick() | | boolean | performContextClick(float arg0, float arg1) | | boolean | performContextClick() | | boolean | performHapticFeedback(int arg0) | | boolean | performHapticFeedback(int arg0, int arg1) | | boolean | performLongClick(float arg0, float arg1) | | boolean | performLongClick() | | void | playSoundEffect(int arg0) | | boolean | post(Runnable arg0) | | boolean | postDelayed(Runnable arg0, long arg1) | | void | postInvalidate() | | void | postInvalidate(int arg0, int arg1, int arg2, int arg3) | | void | postInvalidateDelayed(long arg0, int arg1, int arg2, int arg3, int arg4) | | void | postInvalidateDelayed(long arg0) | | void | postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3) | | void | postInvalidateOnAnimation() | | void | postOnAnimation(Runnable arg0) | | void | postOnAnimationDelayed(Runnable arg0, long arg1) | | void | refreshDrawableState() | | boolean | removeCallbacks(Runnable arg0) | | void | removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0) | | void | removeOnLayoutChangeListener(View.OnLayoutChangeListener arg0) | | void | requestApplyInsets() | | void | requestFitSystemWindows() | | final boolean | requestFocus(int arg0) | | final boolean | requestFocus() | | boolean | requestFocus(int arg0, Rect arg1) | | final boolean | requestFocusFromTouch() | | void | requestLayout() | | boolean | requestRectangleOnScreen(Rect arg0) | | boolean | requestRectangleOnScreen(Rect arg0, boolean arg1) | | final void | requestUnbufferedDispatch(MotionEvent arg0) | | static int | resolveSize(int arg0, int arg1) | | static int | resolveSizeAndState(int arg0, int arg1, int arg2) | | void | restoreHierarchyState(SparseArray<Parcelable> arg0) | | void | saveHierarchyState(SparseArray<Parcelable> arg0) | | void | scheduleDrawable(Drawable arg0, Runnable arg1, long arg2) | | void | scrollBy(int arg0, int arg1) | | void | scrollTo(int arg0, int arg1) | | void | sendAccessibilityEvent(int arg0) | | void | sendAccessibilityEventUnchecked(AccessibilityEvent arg0) | | void | setAccessibilityDelegate(View.AccessibilityDelegate arg0) | | void | setAccessibilityLiveRegion(int arg0) | | void | setAccessibilityTraversalAfter(int arg0) | | void | setAccessibilityTraversalBefore(int arg0) | | void | setActivated(boolean arg0) | | void | setAlpha(float arg0) | | void | setAnimation(Animation arg0) | | void | setBackground(Drawable arg0) | | void | setBackgroundColor(int arg0) | | void | setBackgroundDrawable(Drawable arg0) | | void | setBackgroundResource(int arg0) | | void | setBackgroundTintList(ColorStateList arg0) | | void | setBackgroundTintMode(PorterDuff.Mode arg0) | | final void | setBottom(int arg0) | | void | setCameraDistance(float arg0) | | void | setClickable(boolean arg0) | | void | setClipBounds(Rect arg0) | | void | setClipToOutline(boolean arg0) | | void | setContentDescription(CharSequence arg0) | | void | setContextClickable(boolean arg0) | | void | setDrawingCacheBackgroundColor(int arg0) | | void | setDrawingCacheEnabled(boolean arg0) | | void | setDrawingCacheQuality(int arg0) | | void | setDuplicateParentStateEnabled(boolean arg0) | | void | setElevation(float arg0) | | void | setEnabled(boolean arg0) | | void | setFadingEdgeLength(int arg0) | | void | setFilterTouchesWhenObscured(boolean arg0) | | void | setFitsSystemWindows(boolean arg0) | | void | setFocusable(boolean arg0) | | void | setFocusableInTouchMode(boolean arg0) | | void | setForeground(Drawable arg0) | | void | setForegroundGravity(int arg0) | | void | setForegroundTintList(ColorStateList arg0) | | void | setForegroundTintMode(PorterDuff.Mode arg0) | | void | setHapticFeedbackEnabled(boolean arg0) | | void | setHasTransientState(boolean arg0) | | void | setHorizontalFadingEdgeEnabled(boolean arg0) | | void | setHorizontalScrollBarEnabled(boolean arg0) | | void | setHovered(boolean arg0) | | void | setId(int arg0) | | void | setImportantForAccessibility(int arg0) | | void | setKeepScreenOn(boolean arg0) | | void | setLabelFor(int arg0) | | void | setLayerPaint(Paint arg0) | | void | setLayerType(int arg0, Paint arg1) | | void | setLayoutDirection(int arg0) | | void | setLayoutParams(ViewGroup.LayoutParams arg0) | | final void | setLeft(int arg0) | | void | setLongClickable(boolean arg0) | | final void | setMeasuredDimension(int arg0, int arg1) | | void | setMinimumHeight(int arg0) | | void | setMinimumWidth(int arg0) | | void | setNestedScrollingEnabled(boolean arg0) | | void | setNextFocusDownId(int arg0) | | void | setNextFocusForwardId(int arg0) | | void | setNextFocusLeftId(int arg0) | | void | setNextFocusRightId(int arg0) | | void | setNextFocusUpId(int arg0) | | void | setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener arg0) | | void | setOnClickListener(View.OnClickListener arg0) | | void | setOnContextClickListener(View.OnContextClickListener arg0) | | void | setOnCreateContextMenuListener(View.OnCreateContextMenuListener arg0) | | void | setOnDragListener(View.OnDragListener arg0) | | void | setOnFocusChangeListener(View.OnFocusChangeListener arg0) | | void | setOnGenericMotionListener(View.OnGenericMotionListener arg0) | | void | setOnHoverListener(View.OnHoverListener arg0) | | void | setOnKeyListener(View.OnKeyListener arg0) | | void | setOnLongClickListener(View.OnLongClickListener arg0) | | void | setOnScrollChangeListener(View.OnScrollChangeListener arg0) | | void | setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener arg0) | | void | setOnTouchListener(View.OnTouchListener arg0) | | void | setOutlineProvider(ViewOutlineProvider arg0) | | void | setOverScrollMode(int arg0) | | void | setPadding(int arg0, int arg1, int arg2, int arg3) | | void | setPaddingRelative(int arg0, int arg1, int arg2, int arg3) | | void | setPivotX(float arg0) | | void | setPivotY(float arg0) | | void | setPointerIcon(PointerIcon arg0) | | void | setPressed(boolean arg0) | | final void | setRevealOnFocusHint(boolean arg0) | | final void | setRight(int arg0) | | void | setRotation(float arg0) | | void | setRotationX(float arg0) | | void | setRotationY(float arg0) | | void | setSaveEnabled(boolean arg0) | | void | setSaveFromParentEnabled(boolean arg0) | | void | setScaleX(float arg0) | | void | setScaleY(float arg0) | | void | setScrollBarDefaultDelayBeforeFade(int arg0) | | void | setScrollBarFadeDuration(int arg0) | | void | setScrollBarSize(int arg0) | | void | setScrollBarStyle(int arg0) | | void | setScrollContainer(boolean arg0) | | void | setScrollIndicators(int arg0, int arg1) | | void | setScrollIndicators(int arg0) | | void | setScrollX(int arg0) | | void | setScrollY(int arg0) | | void | setScrollbarFadingEnabled(boolean arg0) | | void | setSelected(boolean arg0) | | void | setSoundEffectsEnabled(boolean arg0) | | void | setStateListAnimator(StateListAnimator arg0) | | void | setSystemUiVisibility(int arg0) | | void | setTag(int arg0, Object arg1) | | void | setTag(Object arg0) | | void | setTextAlignment(int arg0) | | void | setTextDirection(int arg0) | | final void | setTop(int arg0) | | void | setTouchDelegate(TouchDelegate arg0) | | final void | setTransitionName(String arg0) | | void | setTranslationX(float arg0) | | void | setTranslationY(float arg0) | | void | setTranslationZ(float arg0) | | void | setVerticalFadingEdgeEnabled(boolean arg0) | | void | setVerticalScrollBarEnabled(boolean arg0) | | void | setVerticalScrollbarPosition(int arg0) | | void | setVisibility(int arg0) | | void | setWillNotCacheDrawing(boolean arg0) | | void | setWillNotDraw(boolean arg0) | | void | setX(float arg0) | | void | setY(float arg0) | | void | setZ(float arg0) | | boolean | showContextMenu() | | boolean | showContextMenu(float arg0, float arg1) | | ActionMode | startActionMode(ActionMode.Callback arg0, int arg1) | | ActionMode | startActionMode(ActionMode.Callback arg0) | | void | startAnimation(Animation arg0) | | final boolean | startDrag(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3) | | final boolean | startDragAndDrop(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3) | | boolean | startNestedScroll(int arg0) | | void | stopNestedScroll() | | String | toString() | | void | unscheduleDrawable(Drawable arg0, Runnable arg1) | | void | unscheduleDrawable(Drawable arg0) | | final void | updateDragShadow(View.DragShadowBuilder arg0) | | boolean | verifyDrawable(Drawable arg0) | | boolean | willNotCacheDrawing() | | boolean | willNotDraw() |

| | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface android.graphics.drawable.Drawable.Callback

| abstract void | invalidateDrawable(Drawable arg0) | | abstract void | scheduleDrawable(Drawable arg0, Runnable arg1, long arg2) | | abstract void | unscheduleDrawable(Drawable arg0, Runnable arg1) |

| | From interface android.view.KeyEvent.Callback

| abstract boolean | onKeyDown(int arg0, KeyEvent arg1) | | abstract boolean | onKeyLongPress(int arg0, KeyEvent arg1) | | abstract boolean | onKeyMultiple(int arg0, int arg1, KeyEvent arg2) | | abstract boolean | onKeyUp(int arg0, KeyEvent arg1) |

| | From interface android.view.accessibility.AccessibilityEventSource

| abstract void | sendAccessibilityEvent(int arg0) | | abstract void | sendAccessibilityEventUnchecked(AccessibilityEvent arg0) |

|

<!-- jd-descr (summary) --><!-- Details --><!-- XML Attributes --><!-- Enum Values --><!-- Constants --><!-- Fields --><!-- Public ctors --><!-- ========= CONSTRUCTOR DETAIL ======== -->

Public Constructors

public SimpleDraweeView(Context context, GenericDraweeHierarchy hierarchy)

public SimpleDraweeView(Context context)

public SimpleDraweeView(Context context, AttributeSet attrs)

public SimpleDraweeView(Context context, AttributeSet attrs, int defStyle)

public SimpleDraweeView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

<!-- ========= CONSTRUCTOR DETAIL ======== --><!-- Protected ctors --><!-- ========= METHOD DETAIL ======== --><!-- Public methdos -->

Public Methods

public static void initialize(Supplier<? extends AbstractDraweeControllerBuilder> draweeControllerBuilderSupplier)

Initializes SimpleDraweeView with supplier of Drawee controller builders.

public void setActualImageResource(int resourceId, Object callerContext)

Sets the actual image resource to the given resource ID.

Similar to setImageResource(int), this sets the displayed image to the given resource. However, setImageResource(int) bypasses all Drawee functionality and makes the view act as a normal android.widget.ImageView, whereas this method keeps all of the Drawee functionality, including the DraweeHierarchy.

Parameters

| resourceId | the resource ID to use. | | callerContext | caller context |

public void setActualImageResource(int resourceId)

Sets the actual image resource to the given resource ID.

Similar to setImageResource(int), this sets the displayed image to the given resource. However, setImageResource(int) bypasses all Drawee functionality and makes the view act as a normal android.widget.ImageView, whereas this method keeps all of the Drawee functionality, including the DraweeHierarchy.

Parameters

| resourceId | the resource ID to use. |

public void setImageRequest(ImageRequest request)

Sets the image request

Parameters

| request | Image Request |

public void setImageResource(int resId)

This method is deprecated.
Use setController(DraweeController) instead.

This method will bypass all Drawee-related functionality. If you want to keep this functionality, take a look at setActualImageResource(int) and setActualImageResource(int, Object)}.

Parameters

| resId | the resource ID |

public void setImageURI(Uri uri)

Displays an image given by the uri.

Parameters

| uri | uri of the image |

public void setImageURI(Uri uri, Object callerContext)

Displays an image given by the uri.

Parameters

| uri | uri of the image | | callerContext | caller context |

public void setImageURI(String uriString)

Displays an image given by the uri string.

Parameters

| uriString | uri string of the image |

public void setImageURI(String uriString, Object callerContext)

Displays an image given by the uri string.

Parameters

| uriString | uri string of the image | | callerContext | caller context |

public static void shutDown()

Shuts SimpleDraweeView down.

<!-- ========= METHOD DETAIL ======== -->

Protected Methods

protected AbstractDraweeControllerBuilder getControllerBuilder()

<!-- ========= END OF CLASS DATA ========= -->

+Generated by Doclava. +

<!-- end footer - @generated --> <!-- jd-content --> <!-- end doc-content --> <!-- end body-content -->