java.lang.Object | ||
↳ | android.app.Fragment | |
↳ | android.support.v17.leanback.app.RowsFragment |
An ordered set of rows of leanback widgets.
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Fragment
|
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.content.ComponentCallbacks2
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enables scaling of rows.
| |||||||||||
Returns the list of rows.
| |||||||||||
This method is deprecated.
Use
getOnItemClickedListener()
| |||||||||||
Returns the item clicked listener.
| |||||||||||
Returns an item selection listener.
| |||||||||||
Get the presenter selector used to create and bind views.
| |||||||||||
Called to do initial creation of a fragment.
| |||||||||||
Called to have the fragment instantiate its user interface view.
| |||||||||||
Called when the view previously created by
onCreateView(LayoutInflater, ViewGroup, Bundle) has
been detached from the fragment.
| |||||||||||
Called immediately after
onCreateView(LayoutInflater, ViewGroup, Bundle)
has returned, but before any saved state has been restored in to the view.
| |||||||||||
Sets the adapter for the fragment.
| |||||||||||
Set the visibility of titles/hovercard of browse rows.
| |||||||||||
This method is deprecated.
Use
setOnItemViewClickedListener(OnItemViewClickedListener)
| |||||||||||
This method is deprecated.
Use
setOnItemViewSelectedListener(OnItemViewSelectedListener)
| |||||||||||
Sets an item clicked listener on the fragment.
| |||||||||||
Sets an item selection listener.
| |||||||||||
Set the presenter selector used to create and bind views.
| |||||||||||
Sets the selected row position.
| |||||||||||
Sets the selected row position with smooth animation.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Fragment
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks2
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
| |||||||||||
From interface
android.content.ComponentCallbacks
|
Enables scaling of rows.
enable | true to enable row scaling |
---|
Returns an item selection listener.
Get the presenter selector used to create and bind views.
Called to do initial creation of a fragment. This is called after
onAttach(Activity)
and before
onCreateView(LayoutInflater, ViewGroup, Bundle)
.
Note that this can be called while the fragment's activity is
still in the process of being created. As such, you can not rely
on things like the activity's content view hierarchy being initialized
at this point. If you want to do work once the activity itself is
created, see onActivityCreated(Bundle)
.
savedInstanceState | If the fragment is being re-created from a previous saved state, this is the state. |
---|
Called to have the fragment instantiate its user interface view.
This is optional, and non-graphical fragments can return null (which
is the default implementation). This will be called between
onCreate(Bundle)
and onActivityCreated(Bundle)
.
If you return a View from here, you will later be called in
onDestroyView()
when the view is being released.
inflater | The LayoutInflater object that can be used to inflate any views in the fragment, |
---|---|
container | If non-null, this is the parent view that the fragment's UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view. |
savedInstanceState | If non-null, this fragment is being re-constructed from a previous saved state as given here. |
Called when the view previously created by onCreateView(LayoutInflater, ViewGroup, Bundle)
has
been detached from the fragment. The next time the fragment needs
to be displayed, a new view will be created. This is called
after onStop()
and before onDestroy()
. It is called
regardless of whether onCreateView(LayoutInflater, ViewGroup, Bundle)
returned a
non-null view. Internally it is called after the view's state has
been saved but before it has been removed from its parent.
Called immediately after onCreateView(LayoutInflater, ViewGroup, Bundle)
has returned, but before any saved state has been restored in to the view.
This gives subclasses a chance to initialize themselves once
they know their view hierarchy has been completely created. The fragment's
view hierarchy is not however attached to its parent at this point.
view | The View returned by onCreateView(LayoutInflater, ViewGroup, Bundle) . |
---|---|
savedInstanceState | If non-null, this fragment is being re-constructed from a previous saved state as given here. |
Set the visibility of titles/hovercard of browse rows.
This method is deprecated.
Use setOnItemViewClickedListener(OnItemViewClickedListener)
Sets an item clicked listener on the fragment.
OnItemClickedListener will override View.OnClickListener
that
item presenter sets during onCreateViewHolder(ViewGroup)
.
So in general, developer should choose one of the listeners but not both.
This method is deprecated.
Use setOnItemViewSelectedListener(OnItemViewSelectedListener)
Sets an item selection listener.
Sets an item clicked listener on the fragment.
OnItemViewClickedListener will override View.OnClickListener
that
item presenter sets during onCreateViewHolder(ViewGroup)
.
So in general, developer should choose one of the listeners but not both.
Sets an item selection listener.
Set the presenter selector used to create and bind views.
Sets the selected row position.
Sets the selected row position with smooth animation.