public class

GenericDraweeHierarchyInflater

extends Object
java.lang.Object
   ↳ com.facebook.drawee.generic.GenericDraweeHierarchyInflater

Class Overview

Inflater for the GenericDraweeHierarchy.

Fading animation parameters:

Summary

Public Constructors
GenericDraweeHierarchyInflater()
Public Methods
static GenericDraweeHierarchyBuilder inflateBuilder(Context context, AttributeSet attrs)
Inflates a new hierarchy builder from XML.
static GenericDraweeHierarchy inflateHierarchy(Context context, AttributeSet attrs)
Inflates a new hierarchy from XML.
static GenericDraweeHierarchyBuilder updateBuilder(GenericDraweeHierarchyBuilder builder, Context context, AttributeSet attrs)
Updates the existing hierarchy builder based on the XML attributes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GenericDraweeHierarchyInflater ()

Public Methods

public static GenericDraweeHierarchyBuilder inflateBuilder (Context context, AttributeSet attrs)

Inflates a new hierarchy builder from XML. The builder can then be modified in order to override XML attributes if necessary.

public static GenericDraweeHierarchy inflateHierarchy (Context context, AttributeSet attrs)

Inflates a new hierarchy from XML.

public static GenericDraweeHierarchyBuilder updateBuilder (GenericDraweeHierarchyBuilder builder, Context context, AttributeSet attrs)

Updates the existing hierarchy builder based on the XML attributes.

This method is useful if a custom view uses different default values. In that case a builder with adjusted default values can be passed to this method and only the properties explicitly specified in XML will be overridden. The builder can be modified afterwards in case some XML attributes needs to be overridden.

Parameters
builder a hierarchy builder to be updated
Returns
  • the modified instance of the same builder