public class

DraweeSpan

extends BetterImageSpan
java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.MetricAffectingSpan
       ↳ android.text.style.ReplacementSpan
         ↳ com.facebook.widget.text.span.BetterImageSpan
           ↳ com.facebook.drawee.span.DraweeSpan

Class Overview

Span that contains a Drawee.

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

See Also

Summary

[Expand]
Inherited Constants
From class com.facebook.widget.text.span.BetterImageSpan
Public Constructors
DraweeSpan(DraweeHolder draweeHolder, int verticalAlignment)
Public Methods
DraweeHolder getDraweeHolder()
Get the underlying DraweeHolder.
boolean isAttached()
Checks whether the view that uses this holder is currently attached to a window.
void onAttach()
Gets the drawee span ready to display the image.
void onDetach()
Releases resources used to display the image.
[Expand]
Inherited Methods
From class com.facebook.widget.text.span.BetterImageSpan
From class android.text.style.ReplacementSpan
From class android.text.style.MetricAffectingSpan
From class android.text.style.CharacterStyle
From class java.lang.Object

Public Constructors

public DraweeSpan (DraweeHolder draweeHolder, int verticalAlignment)

Public Methods

public DraweeHolder getDraweeHolder ()

Get the underlying DraweeHolder.

Returns
  • the DraweeHolder

public boolean isAttached ()

Checks whether the view that uses this holder is currently attached to a window.

Returns
  • true if the holder is currently attached

public void onAttach ()

Gets the drawee span ready to display the image.

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().