Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

LayoutInflater.Filter

public static interface LayoutInflater.Filter

android.view.LayoutInflater.Filter


Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

Summary

Public methods

abstract boolean onLoadClass(Class clazz)

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

Public methods

onLoadClass

added in API level 1
public abstract boolean onLoadClass (Class clazz)

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

Parameters
clazz Class: The class object for the View that is about to be inflated

Returns
boolean True if this class is allowed to be inflated, or false otherwise