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
MultiDraweeHolder()
Public Methods
void add(DraweeHolder<DH> holder)
void add(int index, DraweeHolder<DH> holder)
void clear()
void draw(Canvas canvas)
Convenience method to draw all the top-level drawables in this holder.
DraweeHolder<DH> get(int index)
void onAttach()
Gets the controller ready to display the images.
void onDetach()
Releases resources used to display the image.
boolean onTouchEvent(MotionEvent event)
void remove(int index)
int size()
boolean verifyDrawable(Drawable who)
Returns true if the argument is a top-level Drawable in this holder.
[Expand]
Inherited Methods
From class java.lang.Object

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.