public class PhoneTabRecyclerAdapter extends AbstractTabRecyclerAdapter
TabSwitcher, when using the smartphone layout.| Constructor and Description |
|---|
PhoneTabRecyclerAdapter(TabSwitcher tabSwitcher,
TabSwitcherModel model,
TabSwitcherStyle style,
<any> tabViewRecycler)
Creates a new view recycler adapter, which allows to inflate the views, which are used to
visualize the tabs of a
TabSwitcher. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCachedPreviews()
Removes all previously rendered previews from the cache.
|
protected Layout |
getLayout()
The method, which is invoked on implementing subclasses in order to retrieve the layout,
which is used by the tab switcher.
|
protected void |
onAdaptBackgroundColor(int color,
TabItem tabItem)
The method, which is invoked on implementing subclasses, when the background color of a tab
has been changed.
|
void |
onCanceled(<any> dataBinder) |
void |
onContentBackgroundColorChanged(Tab tab)
The method, which is invoked, when the background color of the tab's content has been
changed.
|
protected AbstractTabViewHolder |
onCreateTabViewHolder()
The method, which is invoked on implementing subclasses in order to create the view holder,
which should be associated with an inflated view.
|
void |
onFinished(<any> dataBinder,
Tab key,
android.graphics.Bitmap data,
android.widget.ImageView view,
TabItem... params) |
protected android.view.View |
onInflateTabView(android.view.LayoutInflater inflater,
android.view.ViewGroup parent,
AbstractTabViewHolder viewHolder)
The method, which is invoked on implementing subclasses in order to inflate the view, which
is used to visualize tabs.
|
boolean |
onLoadData(<any> dataBinder,
Tab key,
TabItem... params) |
void |
onLogLevelChanged(LogLevel logLevel)
The method, which is invoked, when the log level has been changed.
|
void |
onPaddingChanged(int left,
int top,
int right,
int bottom)
The method, which is invoked, when the padding has been changed.
|
void |
onRemoveView(android.view.View view,
AbstractItem item) |
protected void |
onShowTabView(android.view.View view,
TabItem tabItem,
java.lang.Integer... params)
The method, which is invoked on implementing subclasses in order to adapt the appearance of a
view, which is used to visualize a tab.
|
void |
onTabContentBackgroundColorChanged(int color)
The method, which is invoked, when the background color of a tab's content has been
changed.
|
getModel, getStyle, getTabItem, getTabSwitcher, getViewRecyclerOrThrowException, getViewType, onAddTabButtonColorChanged, onAddTabButtonVisibilityChanged, onAllTabsAdded, onAllTabsRemoved, onBackgroundColorChanged, onCloseableChanged, onCloseButtonIconChanged, onDecoratorChanged, onEmptyViewChanged, onIconChanged, onInflateView, onProgressBarColorChanged, onProgressBarVisibilityChanged, onSelectionChanged, onShowView, onSwitcherHidden, onSwitcherShown, onTabAdded, onTabBackgroundColorChanged, onTabCloseButtonIconChanged, onTabIconChanged, onTabProgressBarColorChanged, onTabRemoved, onTabTitleColorChanged, onTitleChanged, onTitleTextColorChanged, onToolbarMenuInflated, onToolbarNavigationIconChanged, onToolbarTitleChanged, onToolbarVisibilityChanged, setViewRecyclerpublic PhoneTabRecyclerAdapter(TabSwitcher tabSwitcher, TabSwitcherModel model, TabSwitcherStyle style, <any> tabViewRecycler)
TabSwitcher.tabSwitcher - The tab switcher as an instance of the class TabSwitcher. The tab switcher
may not be nullmodel - The model, which belongs to the tab switcher, as an instance of the class TabSwitcherModel. The model may not be nullstyle - The style, which allows to retrieve style attributes of the tab switcher, as an
instance of the class TabSwitcherStyle. The style may not be nulltabViewRecycler - The view recycler, which allows to inflate the views, which are associated with tabs,
as an instance of the class ViewRecycler. The view recycler may not be nullpublic final void clearCachedPreviews()
protected final void onAdaptBackgroundColor(int color,
TabItem tabItem)
AbstractTabRecyclerAdapteronAdaptBackgroundColor in class AbstractTabRecyclerAdaptercolor - The color, which has been set, as an Integer valuetabItem - The tab item, which corresponds to the tab, whose background color has been changed,
as an instance of the class TabItem. The tab item may not be nullprotected final android.view.View onInflateTabView(android.view.LayoutInflater inflater,
android.view.ViewGroup parent,
AbstractTabViewHolder viewHolder)
AbstractTabRecyclerAdapteronInflateTabView in class AbstractTabRecyclerAdapterinflater - The layout inflater, which should be used, as an instance of the class LayoutInflater. The layout inflater may not be nullparent - The parent of the view, which should be inflated, as an instance of the class ViewGroup or null, if no parent is availableviewHolder - The view holder, which should hold references to the child views of the view, which
should be inflated, as an instance of the class AbstractTabViewHolder. The
view holder may not be nullView. The view
may not be nullprotected final void onShowTabView(android.view.View view,
TabItem tabItem,
java.lang.Integer... params)
AbstractTabRecyclerAdapteronShowTabView in class AbstractTabRecyclerAdapterview - The view, which is used to visualize the tab, as an instance of the class View. The view may not be nulltabItem - The tab item, which corresponds to the tab, which is visualized by the given view, as
an instance of the class TabItem. The tab item may not be nullparams - An array, which may contain optional parameters, as an array of the generic type
ParamType or an empty array, if no optional parameters are availableprotected final AbstractTabViewHolder onCreateTabViewHolder()
AbstractTabRecyclerAdapteronCreateTabViewHolder in class AbstractTabRecyclerAdapterAbstractTabViewHolder. The view holder may not be nullprotected final Layout getLayout()
AbstractTabRecyclerAdaptergetLayout in class AbstractTabRecyclerAdapterLayout.
The layout may not be nullpublic final void onRemoveView(android.view.View view,
AbstractItem item)
onRemoveView in class AbstractTabRecyclerAdapterpublic final void onLogLevelChanged(LogLevel logLevel)
Model.ListeneronLogLevelChanged in interface Model.ListeneronLogLevelChanged in class AbstractTabRecyclerAdapterlogLevel - The log level, which has been set, as a value of the enum LogLevel. The log level
may not be nullpublic final void onPaddingChanged(int left,
int top,
int right,
int bottom)
Model.ListeneronPaddingChanged in interface Model.ListeneronPaddingChanged in class AbstractTabRecyclerAdapterleft - The left padding, which has been set, in pixels as an Integer valuetop - The top padding, which has been set, in pixels as an Integer valueright - The right padding, which has been set, in pixels as an Integer valuebottom - The bottom padding, which has been set, in pixels as an Integer valuepublic final void onTabContentBackgroundColorChanged(int color)
Model.ListeneronTabContentBackgroundColorChanged in interface Model.ListeneronTabContentBackgroundColorChanged in class AbstractTabRecyclerAdaptercolor - The color, which has been set, as an Integer value or -1, if the default
color should be usedpublic final void onContentBackgroundColorChanged(Tab tab)
Tab.CallbackonContentBackgroundColorChanged in interface Tab.CallbackonContentBackgroundColorChanged in class AbstractTabRecyclerAdaptertab - The observed tab as an instance of the class Tab. The tab may not be
nullpublic final void onFinished(<any> dataBinder,
Tab key,
android.graphics.Bitmap data,
android.widget.ImageView view,
TabItem... params)
public final void onCanceled(<any> dataBinder)