FragmentContainer
public
abstract
class
FragmentContainer
extends Object
java.lang.Object | |
↳ | androidx.fragment.app.FragmentContainer |
Callbacks to a Fragment
's container.
Summary
Public constructors | |
---|---|
FragmentContainer()
|
Public methods | |
---|---|
Fragment
|
instantiate(Context context, String className, Bundle arguments)
This method is deprecated.
Use |
abstract
View
|
onFindViewById(int id)
Return the view with the given resource ID. |
abstract
boolean
|
onHasView()
Return |
Inherited methods | |
---|---|
Public constructors
FragmentContainer
public FragmentContainer ()
Public methods
instantiate
public Fragment instantiate (Context context, String className, Bundle arguments)
This method is deprecated.
Use FragmentManager.setFragmentFactory(FragmentFactory)
to control how Fragments are
instantiated.
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
Fragment.instantiate(Context, String, Bundle)
.
Parameters | |
---|---|
context |
Context |
className |
String |
arguments |
Bundle |
Returns | |
---|---|
Fragment |
onFindViewById
public abstract 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
public abstract boolean onHasView ()
Return true
if the container holds any view.
Returns | |
---|---|
boolean |