Stay organized with collections
Save and categorize content based on your preferences.
LayoutInflater.Filter
public
static
interface
LayoutInflater.Filter
android.view.LayoutInflater.Filter
|
Known indirect subclasses
RemoteViews |
A class that describes a view hierarchy that can be displayed in
another process.
|
|
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<T> clazz)
Hook to allow clients of the LayoutInflater to restrict the set of Views
that are allowed to be inflated.
|
Public methods
onLoadClass
public abstract boolean onLoadClass (Class<T> 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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LayoutInflater.Filter\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nLayoutInflater.Filter\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/LayoutInflater.Filter \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nLayoutInflater.Filter\n`\n\n\n`\n\n\n`\n\n|------------------------------------|\n| android.view.LayoutInflater.Filter |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [RemoteViews](/reference/android/widget/RemoteViews) |------------------------------------------------------|-----------------------------------------------------------------------------------| | [RemoteViews](/reference/android/widget/RemoteViews) | A class that describes a view hierarchy that can be displayed in another process. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nHook to allow clients of the LayoutInflater to restrict the set of Views that are allowed\nto be inflated.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[onLoadClass](/reference/android/view/LayoutInflater.Filter#onLoadClass(java.lang.Class))`(`[Class](/reference/java/lang/Class)`\u003cT\u003e clazz) ` Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated. |\n\nPublic methods\n--------------\n\n### onLoadClass\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean onLoadClass (Class\u003cT\u003e clazz)\n```\n\nHook to allow clients of the LayoutInflater to restrict the set of Views\nthat are allowed to be inflated.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------|\n| `clazz` | `Class`: The class object for the View that is about to be inflated \u003cbr /\u003e |\n\n| Returns ||\n|-----------|-------------------------------------------------------------------------|\n| `boolean` | True if this class is allowed to be inflated, or false otherwise \u003cbr /\u003e |"]]