{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
abstract class FragmentContainer
FragmentHostCallback |
Integration points with the Fragment host. |
Callbacks to a Fragment
's container.
Public constructors |
|
---|---|
Public functions |
|
---|---|
Fragment |
This function is deprecated. Use |
abstract View? |
onFindViewById(id: Int) Return the view with the given resource ID. |
abstract Boolean |
Return |
funinstantiate(context: Context, className: String, arguments: Bundle?): Fragment
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)
.
abstract fun onFindViewById(id: Int): View?
Return the view with the given resource ID. May return {@code null}
if the view is not a child of this container.