Back to Fresco

MultiDraweeHolder

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

3.6.014.2 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

public class

MultiDraweeHolder

extends Object

| java.lang.Object | | ↳ | com.facebook.drawee.view.MultiDraweeHolder<DH extends com.facebook.drawee.interfaces.DraweeHierarchy> |

Class Overview

Contains multiple Drawee holders.

Intended for use in custom views that are showing more than one hierarchy.

Users of this class must< call setBounds(Rect) on the top-level drawable of each DraweeHierarchy in this holder. Otherwise the drawables will not be drawn.

The containing view must also call onDetach() from its onStartTemporaryDetach() and onDetachedFromWindow() methods. It must call onAttach() from its onFinishTemporaryDetach() and onAttachedToWindow() methods.

Summary

Public Constructors
Public Methods
void
void
void
void
Convenience method to draw all the top-level drawables in this holder.
DraweeHolder<DH>
void
Gets the controller ready to display the images.
void
Releases resources used to display the image.
boolean
void
int
boolean
Returns true if the argument is a top-level Drawable in this holder.

| [Expand] Inherited Methods | | --- | | 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() |

|

Public Constructors

public MultiDraweeHolder()

Public Methods

public void add(DraweeHolder<DH> holder)

public void add(int index, DraweeHolder<DH> holder)

public void clear()

public void draw(Canvas canvas)

Convenience method to draw all the top-level drawables in this holder.

public DraweeHolder<DH> get(int index)

public void onAttach()

Gets the controller ready to display the images.

The containing view must call this method from both onFinishTemporaryDetach() and onAttachedToWindow().

public void onDetach()

Releases resources used to display the image.

The containing view must call this method from both onStartTemporaryDetach() and onDetachedFromWindow().

public boolean onTouchEvent(MotionEvent event)

public void remove(int index)

public int size()

public boolean verifyDrawable(Drawable who)

Returns true if the argument is a top-level Drawable in this holder.

+Generated by Doclava. +