Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 24.1.0
belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1

FragmentContainer

public abstract class FragmentContainer
extends Object

java.lang.Object
   ↳ android.support.v4.app.FragmentContainer
Known Direct Subclasses


Callbacks to a Fragment's container.

Summary

Public constructors

FragmentContainer()

Public methods

Fragment instantiate(Context context, String className, Bundle arguments)

Creates an instance of the specified fragment, can be overridden to construct fragments with dependencies, or change the fragment being constructed.

abstract View onFindViewById(int id)

Return the view with the given resource ID.

abstract boolean onHasView()

Return true if the container holds any view.

Inherited methods

From class java.lang.Object

Public constructors

FragmentContainer

added in version 24.1.0
FragmentContainer ()

Public methods

instantiate

added in version 26.1.0
Fragment instantiate (Context context, 
                String className, 
                Bundle arguments)

Creates an instance of the specified fragment, can be overridden to construct fragments with dependencies, or change the fragment being constructed. By default just calls instantiate(Context, String, Bundle).

Parameters
context Context

className String

arguments Bundle

Returns
Fragment

onFindViewById

added in version 24.1.0
View onFindViewById (int id)

Return the view with the given resource ID. May return null if the view is not a child of this container.

Parameters
id int

Returns
View

onHasView

added in version 24.1.0
boolean onHasView ()

Return true if the container holds any view.

Returns
boolean