public class ContentRecyclerAdapter extends <any> implements Restorable
TabSwitcher, by encapsulating a TabSwitcherDecorator.| Constructor and Description |
|---|
ContentRecyclerAdapter(TabSwitcher tabSwitcher,
TabSwitcherDecorator decorator)
Creates a new view recycler adapter, which allows to inflate views, which are associated with
the tabs of a
TabSwitcher, by encapsulating a TabSwitcherDecorator. |
| Modifier and Type | Method and Description |
|---|---|
int |
getViewType(Tab item) |
int |
getViewTypeCount() |
android.view.View |
onInflateView(android.view.LayoutInflater inflater,
android.view.ViewGroup parent,
Tab item,
int viewType,
java.lang.Void... params) |
void |
onRemoveView(android.view.View view,
Tab item) |
void |
onShowView(android.content.Context context,
android.view.View view,
Tab item,
boolean inflated,
java.lang.Void... params) |
void |
restoreInstanceState(android.os.Bundle savedInstanceState)
Restores a previously saved state.
|
void |
saveInstanceState(android.os.Bundle outState)
Saves the current state.
|
public ContentRecyclerAdapter(TabSwitcher tabSwitcher, TabSwitcherDecorator decorator)
TabSwitcher, by encapsulating a TabSwitcherDecorator.tabSwitcher - The tab switcher, which contains the tabs, whose associated views are inflated by the
adapter, correspond to, as an instance of the class TabSwitcher. The tab
switcher may not be nulldecorator - The decorator, which should be used to inflate the associated views, as an instance
of the class TabSwitcherDecorator. The decorator may not be nullpublic final android.view.View onInflateView(android.view.LayoutInflater inflater,
android.view.ViewGroup parent,
Tab item,
int viewType,
java.lang.Void... params)
public final void onShowView(android.content.Context context,
android.view.View view,
Tab item,
boolean inflated,
java.lang.Void... params)
public final void onRemoveView(android.view.View view,
Tab item)
public final int getViewTypeCount()
public final int getViewType(Tab item)
public final void saveInstanceState(android.os.Bundle outState)
RestorablesaveInstanceState in interface RestorableoutState - The bundle, which should be used to store the saved state, as an instance of the
class Bundle. The bundle may not be nullpublic final void restoreInstanceState(android.os.Bundle savedInstanceState)
RestorablerestoreInstanceState in interface RestorablesavedInstanceState - The saved state as an instance of the class Bundle or null, if no saved state
is available