{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public abstract class FragmentContainer
FragmentHostCallback |
Integration points with the Fragment host. |
Callbacks to a Fragment
's container.
Public constructors |
|
---|---|
Public methods |
|
---|---|
@NonNull Fragment |
This method is deprecated. Use |
abstract @Nullable View |
onFindViewById(@NonNull int id) Return the view with the given resource ID. |
abstract @NonNull boolean |
Return |
@NonNull
public Fragmentinstantiate(
@NonNull Context context,
@NonNull String className,
@Nullable 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 Fragment#instantiate(Context, String, Bundle)
.
@Nullable
@NonNull
public abstract View onFindViewById(@NonNull int id)
Return the view with the given resource ID. May return {@code null}
if the view is not a child of this container.