Udostępnij za pośrednictwem


ViewStub.IOnInflateListener.OnInflate(ViewStub, View) Method

Definition

Invoked after a ViewStub successfully inflated its layout resource.

[Android.Runtime.Register("onInflate", "(Landroid/view/ViewStub;Landroid/view/View;)V", "GetOnInflate_Landroid_view_ViewStub_Landroid_view_View_Handler:Android.Views.ViewStub/IOnInflateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnInflate (Android.Views.ViewStub? stub, Android.Views.View? inflated);
[<Android.Runtime.Register("onInflate", "(Landroid/view/ViewStub;Landroid/view/View;)V", "GetOnInflate_Landroid_view_ViewStub_Landroid_view_View_Handler:Android.Views.ViewStub/IOnInflateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnInflate : Android.Views.ViewStub * Android.Views.View -> unit

Parameters

stub
ViewStub

The ViewStub that initiated the inflation.

inflated
View

The inflated View.

Attributes

Remarks

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.

Java documentation for android.view.ViewStub.OnInflateListener.onInflate(android.view.ViewStub, android.view.View).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to