Udostępnij za pośrednictwem


FragmentManager.FragmentLifecycleCallbacks.OnFragmentViewCreated Method

Definition

Called after the fragment has returned a non-null view from the FragmentManager's request to Fragment#onCreateView(LayoutInflater, ViewGroup, Bundle).

[Android.Runtime.Register("onFragmentViewCreated", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/view/View;Landroid/os/Bundle;)V", "GetOnFragmentViewCreated_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_view_View_Landroid_os_Bundle_Handler", ApiSince=26)]
public virtual void OnFragmentViewCreated (Android.App.FragmentManager fm, Android.App.Fragment f, Android.Views.View v, Android.OS.Bundle savedInstanceState);
[<Android.Runtime.Register("onFragmentViewCreated", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/view/View;Landroid/os/Bundle;)V", "GetOnFragmentViewCreated_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_view_View_Landroid_os_Bundle_Handler", ApiSince=26)>]
abstract member OnFragmentViewCreated : Android.App.FragmentManager * Android.App.Fragment * Android.Views.View * Android.OS.Bundle -> unit
override this.OnFragmentViewCreated : Android.App.FragmentManager * Android.App.Fragment * Android.Views.View * Android.OS.Bundle -> unit

Parameters

fm
FragmentManager

Host FragmentManager

f
Fragment

Fragment that created and owns the view

v
View

View returned by the fragment

savedInstanceState
Bundle

Saved instance bundle from a previous instance

Attributes

Remarks

Called after the fragment has returned a non-null view from the FragmentManager's request to Fragment#onCreateView(LayoutInflater, ViewGroup, Bundle).

Java documentation for android.app.FragmentManager.FragmentLifecycleCallbacks.onFragmentViewCreated(android.app.FragmentManager, android.app.Fragment, android.view.View, android.os.Bundle).

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