Added in API level 1

OnInflateListener


interface OnInflateListener
android.view.ViewStub.OnInflateListener

Listener used to receive a notification after a ViewStub has successfully inflated its layout resource.

Summary

Public methods
abstract Unit
onInflate(stub: ViewStub!, inflated: View!)

Invoked after a ViewStub successfully inflated its layout resource.

Public methods

onInflate

Added in API level 1
abstract fun onInflate(
    stub: ViewStub!,
    inflated: View!
): Unit

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.