java.lang.Object | |
↳ | com.facebook.drawee.view.MultiDraweeHolder<DH extends com.facebook.drawee.interfaces.DraweeHierarchy> |
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.
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
|
Convenience method to draw all the top-level drawables in this holder.
Gets the controller ready to display the images.
The containing view must call this method from both onFinishTemporaryDetach()
and onAttachedToWindow()
.
Releases resources used to display the image.
The containing view must call this method from both onStartTemporaryDetach()
and onDetachedFromWindow()
.
Returns true if the argument is a top-level Drawable in this holder.