Stay organized with collections
Save and categorize content based on your preferences.
ViewStub.OnInflateListener
public
static
interface
ViewStub.OnInflateListener
android.view.ViewStub.OnInflateListener
|
Listener used to receive a notification after a ViewStub has successfully
inflated its layout resource.
Summary
Public methods |
abstract
void
|
onInflate(ViewStub stub, View inflated)
Invoked after a ViewStub successfully inflated its layout resource.
|
Public methods
onInflate
public abstract void onInflate (ViewStub stub,
View inflated)
Invoked after a ViewStub successfully inflated its layout resource.
This method is invoked after the inflated view was added to the
hierarchy but before the layout pass.
Parameters |
stub |
ViewStub : The ViewStub that initiated the inflation. |
inflated |
View : The inflated View. |
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,["# ViewStub.OnInflateListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nViewStub.OnInflateListener\n==========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/ViewStub.OnInflateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nViewStub.OnInflateListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.view.ViewStub.OnInflateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener used to receive a notification after a ViewStub has successfully\ninflated its layout resource. \n**See also:**\n\n- [ViewStub.setOnInflateListener(android.view.ViewStub.OnInflateListener)](/reference/android/view/ViewStub#setOnInflateListener(android.view.ViewStub.OnInflateListener))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onInflate](/reference/android/view/ViewStub.OnInflateListener#onInflate(android.view.ViewStub,%20android.view.View))`(`[ViewStub](/reference/android/view/ViewStub)` stub, `[View](/reference/android/view/View)` inflated) ` Invoked after a ViewStub successfully inflated its layout resource. |\n\nPublic methods\n--------------\n\n### onInflate\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onInflate (ViewStub stub, \n View inflated)\n```\n\nInvoked after a ViewStub successfully inflated its layout resource.\nThis method is invoked after the inflated view was added to the\nhierarchy but before the layout pass.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------------------------------------------------------|\n| `stub` | `ViewStub`: The ViewStub that initiated the inflation. \u003cbr /\u003e |\n| `inflated` | `View`: The inflated View. \u003cbr /\u003e |"]]