public static class BubbleTabAdapter.Builder
extends com.tompee.funtablayout.BaseAdapter.BaseBuilder
| Constructor and Description |
|---|
Builder(Context context)
Creates a builder for a simple tab adapter
|
| Modifier and Type | Method and Description |
|---|---|
BubbleTabAdapter |
build()
Creates a SimpleTabAdapter with the arguments supplied to this builder.
|
BubbleTabAdapter.Builder |
setIconDimension(int dimension)
Sets the dimension of the icon to be displayed.
|
BubbleTabAdapter.Builder |
setIconFetcher(BubbleTabAdapter.IconFetcher fetcher)
Sets the callback method to get the icon displayed in tabs
|
BubbleTabAdapter.Builder |
setTabBackgroundResId(int tabBackgroundResId)
Set the background to a given resource.
|
BubbleTabAdapter.Builder |
setTabIndicatorColor(int color)
Sets the tab indicator bar color.
|
BubbleTabAdapter.Builder |
setTabPadding(int tabPaddingStart,
int tabPaddingTop,
int tabPaddingEnd,
int tabPaddingBottom)
Sets the padding.
|
BubbleTabAdapter.Builder |
setTabTextAppearance(int tabTextAppearance)
Sets the text appearance from the specified style resource.
|
BubbleTabAdapter.Builder |
setViewPager(ViewPager viewPager)
Set a list of items, which are supplied by the given ViewPager
|
public Builder(Context context)
context - the parent contextpublic BubbleTabAdapter.Builder setViewPager(ViewPager viewPager)
setViewPager in class com.tompee.funtablayout.BaseAdapter.BaseBuilderviewPager - the ViewPager to link to, or null to clear any previous linkpublic BubbleTabAdapter.Builder setTabPadding(int tabPaddingStart, int tabPaddingTop, int tabPaddingEnd, int tabPaddingBottom)
setTabPadding in class com.tompee.funtablayout.BaseAdapter.BaseBuildertabPaddingStart - the start padding in pixelstabPaddingTop - the top padding in pixelstabPaddingEnd - the end padding in pixelstabPaddingBottom - the bottom padding in pixelspublic BubbleTabAdapter.Builder setTabTextAppearance(int tabTextAppearance)
setTabTextAppearance in class com.tompee.funtablayout.BaseAdapter.BaseBuildertabTextAppearance - The resource identifier of the style to apply.public BubbleTabAdapter.Builder setTabBackgroundResId(int tabBackgroundResId)
setTabBackgroundResId in class com.tompee.funtablayout.BaseAdapter.BaseBuildertabBackgroundResId - The identifier of the resource.public BubbleTabAdapter.Builder setTabIndicatorColor(int color)
setTabIndicatorColor in class com.tompee.funtablayout.BaseAdapter.BaseBuildercolor - The new indicator colorpublic BubbleTabAdapter.Builder setIconFetcher(BubbleTabAdapter.IconFetcher fetcher)
fetcher - The fetcher to setpublic BubbleTabAdapter.Builder setIconDimension(int dimension)
dimension - Dimension in pixelspublic BubbleTabAdapter build()