public class PagerSlidingTabStrip
extends HorizontalScrollView
| Modifier and Type | Class and Description |
|---|---|
static interface |
PagerSlidingTabStrip.CustomTabProvider |
static interface |
PagerSlidingTabStrip.OnTabReselectedListener |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEF_VALUE_TAB_TEXT_ALPHA |
OnPageChangeListener |
mDelegatePageListener |
| Constructor and Description |
|---|
PagerSlidingTabStrip(Context context) |
PagerSlidingTabStrip(Context context,
AttributeSet attrs) |
PagerSlidingTabStrip(Context context,
AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentPosition() |
float |
getCurrentPositionOffset() |
int |
getDividerColor() |
int |
getDividerPadding() |
int |
getDividerWidth() |
int |
getIndicatorColor() |
<any> |
getIndicatorCoordinates() |
int |
getIndicatorHeight() |
int |
getScrollOffset() |
boolean |
getShouldExpand() |
int |
getTabBackground() |
int |
getTabCount() |
int |
getTabPaddingLeftRight() |
LinearLayout |
getTabsContainer() |
ColorStateList |
getTextColor() |
int |
getTextSize() |
int |
getUnderlineColor() |
int |
getUnderlineHeight() |
boolean |
isTextAllCaps() |
void |
notifyDataSetChanged() |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
protected void |
onDraw(Canvas canvas) |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b) |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
void |
setAllCaps(boolean textAllCaps) |
void |
setDividerColor(int dividerColor) |
void |
setDividerColorResource(int resId) |
void |
setDividerPadding(int dividerPaddingPx) |
void |
setDividerWidth(int dividerWidthPx) |
void |
setIndicatorColor(int indicatorColor) |
void |
setIndicatorColorResource(int resId) |
void |
setIndicatorHeight(int indicatorLineHeightPx) |
void |
setOnPageChangeListener(OnPageChangeListener listener) |
void |
setOnTabReselectedListener(PagerSlidingTabStrip.OnTabReselectedListener tabReselectedListener) |
void |
setScrollOffset(int scrollOffsetPx) |
void |
setShouldExpand(boolean shouldExpand) |
void |
setTabBackground(int resId) |
void |
setTabPaddingLeftRight(int paddingPx) |
void |
setTextColor(ColorStateList colorStateList) |
void |
setTextColor(int textColor) |
void |
setTextColorResource(int resId) |
void |
setTextColorStateListResource(int resId) |
void |
setTextSize(int textSizePx) |
void |
setTypeface(Typeface typeface,
int style) |
void |
setUnderlineColor(int underlineColor) |
void |
setUnderlineColorResource(int resId) |
void |
setUnderlineHeight(int underlineHeightPx) |
void |
setViewPager(ViewPager pager) |
public static final int DEF_VALUE_TAB_TEXT_ALPHA
public OnPageChangeListener mDelegatePageListener
public PagerSlidingTabStrip(Context context)
public PagerSlidingTabStrip(Context context,
AttributeSet attrs)
public PagerSlidingTabStrip(Context context,
AttributeSet attrs,
int defStyle)
public void setViewPager(ViewPager pager)
public void notifyDataSetChanged()
public <any> getIndicatorCoordinates()
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
protected void onDraw(Canvas canvas)
public void setOnTabReselectedListener(PagerSlidingTabStrip.OnTabReselectedListener tabReselectedListener)
public void setOnPageChangeListener(OnPageChangeListener listener)
protected void onAttachedToWindow()
protected void onDetachedFromWindow()
public void onRestoreInstanceState(Parcelable state)
public Parcelable onSaveInstanceState()
public int getIndicatorColor()
public int getIndicatorHeight()
public int getUnderlineColor()
public int getDividerColor()
public int getDividerWidth()
public int getUnderlineHeight()
public int getDividerPadding()
public int getScrollOffset()
public boolean getShouldExpand()
public int getTextSize()
public boolean isTextAllCaps()
public ColorStateList getTextColor()
public int getTabBackground()
public int getTabPaddingLeftRight()
public LinearLayout getTabsContainer()
public int getTabCount()
public int getCurrentPosition()
public float getCurrentPositionOffset()
public void setIndicatorColor(int indicatorColor)
public void setIndicatorColorResource(int resId)
public void setIndicatorHeight(int indicatorLineHeightPx)
public void setUnderlineColor(int underlineColor)
public void setUnderlineColorResource(int resId)
public void setDividerColor(int dividerColor)
public void setDividerColorResource(int resId)
public void setDividerWidth(int dividerWidthPx)
public void setUnderlineHeight(int underlineHeightPx)
public void setDividerPadding(int dividerPaddingPx)
public void setScrollOffset(int scrollOffsetPx)
public void setShouldExpand(boolean shouldExpand)
public void setAllCaps(boolean textAllCaps)
public void setTextSize(int textSizePx)
public void setTextColorResource(int resId)
public void setTextColor(int textColor)
public void setTextColorStateListResource(int resId)
public void setTextColor(ColorStateList colorStateList)
public void setTypeface(Typeface typeface,
int style)
public void setTabBackground(int resId)
public void setTabPaddingLeftRight(int paddingPx)