Språk

Fragment.LayoutInflater Property

Definition

Returns the cached LayoutInflater used to inflate Views of this Fragment.

public Android.Views.LayoutInflater? LayoutInflater { [Android.Runtime.Register("getLayoutInflater", "()Landroid/view/LayoutInflater;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getLayoutInflater", "()Landroid/view/LayoutInflater;", "", ApiSince=26)>]
member this.LayoutInflater : Android.Views.LayoutInflater

Property Value

The LayoutInflater used to inflate Views of this Fragment.

Attributes

Remarks

Returns the cached layout inflater used to inflate this fragment's views. If no inflater is cached, OnGetLayoutInflater(Bundle) is called with a null argument and its result is cached. The cached inflater is replaced immediately before OnCreateView(LayoutInflater, ViewGroup, Bundle) and cleared immediately after OnDetach().

Android reference for android.app.Fragment.getLayoutInflater.

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