public static class SimpleTabAdapter.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 |
|---|---|
SimpleTabAdapter |
build()
Creates a SimpleTabAdapter with the arguments supplied to this builder.
|
SimpleTabAdapter.Builder |
setTabBackgroundResId(int tabBackgroundResId)
Set the background to a given resource.
|
SimpleTabAdapter.Builder |
setTabIndicatorColor(int color)
Sets the tab indicator bar color.
|
SimpleTabAdapter.Builder |
setTabIndicatorHeight(int height)
Sets the tab indicator height.
|
SimpleTabAdapter.Builder |
setTabPadding(int tabPaddingStart,
int tabPaddingTop,
int tabPaddingEnd,
int tabPaddingBottom)
Sets the padding.
|
SimpleTabAdapter.Builder |
setTabSelectedTextColor(int tabSelectedTextColor)
Sets the tab text selected color.
|
SimpleTabAdapter.Builder |
setTabTextAppearance(int tabTextAppearance)
Sets the text appearance from the specified style resource.
|
SimpleTabAdapter.Builder |
setViewPager(ViewPager viewPager)
Set a list of items, which are supplied by the given ViewPager
|
public Builder(Context context)
context - the parent contextpublic SimpleTabAdapter.Builder setViewPager(ViewPager viewPager)
setViewPager in class com.tompee.funtablayout.BaseAdapter.BaseBuilderviewPager - the ViewPager to link to, or null to clear any previous linkpublic SimpleTabAdapter.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 SimpleTabAdapter.Builder setTabTextAppearance(int tabTextAppearance)
setTabTextAppearance in class com.tompee.funtablayout.BaseAdapter.BaseBuildertabTextAppearance - The resource identifier of the style to apply.public SimpleTabAdapter.Builder setTabBackgroundResId(int tabBackgroundResId)
setTabBackgroundResId in class com.tompee.funtablayout.BaseAdapter.BaseBuildertabBackgroundResId - The identifier of the resource.public SimpleTabAdapter.Builder setTabSelectedTextColor(int tabSelectedTextColor)
tabSelectedTextColor - The new text selected colorpublic SimpleTabAdapter.Builder setTabIndicatorColor(int color)
setTabIndicatorColor in class com.tompee.funtablayout.BaseAdapter.BaseBuildercolor - The new indicator colorpublic SimpleTabAdapter.Builder setTabIndicatorHeight(int height)
height - The new indicator height in pixelspublic SimpleTabAdapter build()