Back to Fresco

DraweeHierarchy

docs/javadoc/reference/com/facebook/drawee/interfaces/DraweeHierarchy.html

3.6.011.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Packages | Classes

Summary: Methods | [Expand All]

public interface

DraweeHierarchy

| com.facebook.drawee.interfaces.DraweeHierarchy |

| Known Indirect Subclasses

GenericDraweeHierarchy, SettableDraweeHierarchy

| GenericDraweeHierarchy | A SettableDraweeHierarchy that displays placeholder image until the actual image is set. | | SettableDraweeHierarchy | Interface that represents a settable Drawee hierarchy. |

|

Class Overview

Interface that represents a Drawee hierarchy.

A hierarchy assembles a tree of Drawables in order to form a dynamically changeable display. This is much more lightweight than the traditional Android way of nesting View objects.

Hierarchy details are hidden for the outside world. All that's visible is the top level drawable, which can be put into a view.

Example hierarchy:

o FadeDrawable (top level drawable)
   |
   +--o ScaleTypeDrawable
   | |
   | +--o BitmapDrawable
   |
   +--o ScaleTypeDrawable
      |
      +--o BitmapDrawable

Summary

Public Methods
abstract Rect
abstract Drawable
Returns the top level drawable in the corresponding hierarchy.

Public Methods

public abstract Rect getBounds()

Returns
  • bounds of the top drawable

public abstract Drawable getTopLevelDrawable()

Returns the top level drawable in the corresponding hierarchy. Hierarchy should always have the same instance of its top level drawable.

Returns
  • top level drawable

+Generated by Doclava. +