class TabsAdapter : Adapter<TabViewHolder>, TabsTray, Observable<Observer>
(source)
RecyclerView adapter implementation to display a list/grid of tabs.
TabsAdapter(delegate: Observable<Observer> = ObserverRegistry())
RecyclerView adapter implementation to display a list/grid of tabs. |
fun displaySessions(sessions: List<Session>, selectedIndex: Int): Unit
Displays the given list of sessions. |
|
fun getItemCount(): Int |
|
fun onBindViewHolder(holder: TabViewHolder, position: Int): Unit |
|
fun onCreateViewHolder(parent: ViewGroup, viewType: Int): TabViewHolder |
|
fun onSessionMoved(fromPosition: Int, toPosition: Int): Unit
Called after updateSessions() when a session changes it position. |
|
fun onSessionsChanged(position: Int, count: Int): Unit
Called after updateSessions() when count number of sessions are updated at the given position. |
|
fun onSessionsInserted(position: Int, count: Int): Unit
Called after updateSessions() when count number of sessions are inserted at the given position. |
|
fun onSessionsRemoved(position: Int, count: Int): Unit
Called after updateSessions() when count number of sessions are removed from the given position. |
|
fun onViewRecycled(holder: TabViewHolder): Unit |
|
fun unsubscribeHolders(): Unit |
|
fun updateSessions(sessions: List<Session>, selectedIndex: Int): Unit
Updates the list of sessions. |
open fun asView(): View
Convenience method to cast the implementation of this interface to an Android View object. |