public class TabSwitcherStyle
extends java.lang.Object
TabSwitcher
.Constructor and Description |
---|
TabSwitcherStyle(TabSwitcher tabSwitcher,
Model model,
ThemeHelper themeHelper)
Creates a new class, which allows to retrieve the style attributes of a
TabSwitcher . |
Modifier and Type | Method and Description |
---|---|
android.content.res.ColorStateList |
getAddTabButtonColor()
Returns the color of the button, which allows to add a new tab.
|
android.content.res.ColorStateList |
getTabBackgroundColor(Tab tab)
Returns the background color of tabs.
|
android.graphics.drawable.Drawable |
getTabCloseButtonIcon(Tab tab)
Returns the close button icon of tabs.
|
int |
getTabContentBackgroundColor(Tab tab)
Returns the content background color of tabs.
|
android.graphics.drawable.Drawable |
getTabIcon(Tab tab)
Returns the icon of tabs.
|
int |
getTabProgressBarColor(Tab tab)
Returns the progress bar color of tabs.
|
android.content.res.ColorStateList |
getTabTitleTextColor(Tab tab)
Returns the title text color of tabs.
|
ThemeHelper |
getThemeHelper()
Returns the theme helper, which allows to retrieve resources, depending on the tab switcher's
theme.
|
android.graphics.drawable.Drawable |
getToolbarNavigationIcon()
Returns the navigation icon of the toolbar, which is shown, when the tab switcher is shown.
|
java.lang.CharSequence |
getToolbarTitle()
Returns the title of the toolbar, which is shown, when the tab switcher is shown.
|
public TabSwitcherStyle(@NonNull TabSwitcher tabSwitcher, @NonNull Model model, @NonNull ThemeHelper themeHelper)
TabSwitcher
.tabSwitcher
- The tab switcher, whose style attributes are retrieved, as an instance of the type
TabSwitcher
. The tab switcher may not be nullmodel
- The model of the tab switcher, whose style attributes are retrieved, as an instance
of the class TabSwitcher
. The model may not be nullthemeHelper
- The theme helper, which allows to retrieve resources, depending on the tab switcher's
theme, as an instance of the class ThemeHelper
. The theme helper may not be
null@NonNull public final ThemeHelper getThemeHelper()
ThemeHelper
. The theme helper may not be null@Nullable public final android.graphics.drawable.Drawable getTabIcon(@Nullable Tab tab)
tab
- The tab, the icon should be returned for, as an instance of the class Tab
or
null, if the icon should not be returned for a specific tabDrawable
or null, if no icon is
setpublic final android.content.res.ColorStateList getTabBackgroundColor(@Nullable Tab tab)
tab
- The tab, the background color should be returned for, as an instance of the class
Tab
or null, if the background color should not be returned for a specific
tabColorStateList
public final int getTabContentBackgroundColor(@Nullable Tab tab)
tab
- The tab, the background color should be returned for, as an instance of the class
Tab
or null, if the background color should not be returned for a specific
tabInteger
valuepublic final android.content.res.ColorStateList getTabTitleTextColor(@Nullable Tab tab)
tab
- The tab, the text color should be returned for, as an instance of the class Tab
or null, if the text color should not be returned for a specific tabColorStateList
public final android.graphics.drawable.Drawable getTabCloseButtonIcon(@Nullable Tab tab)
tab
- The tab, the icon should be returned for, as an instance of the class Tab
or
null, if the icon should not be returned for a specific tabDrawable
public final int getTabProgressBarColor(@Nullable Tab tab)
tab
- The tab, the color should be returned for, as an instance of the class Tab
or
null, if the color should not be returned for a specific tabInteger
valuepublic final android.content.res.ColorStateList getAddTabButtonColor()
ColorStateList
or null, if the default color is used@Nullable public final java.lang.CharSequence getToolbarTitle()
CharSequence
or null, if no title is set@Nullable public final android.graphics.drawable.Drawable getToolbarNavigationIcon()
Drawable
or null, if no icon is set