类 | |
| class | MyOnPageChangeListener |
Public 成员函数 | |
| AbSlidingTabView (Context context) | |
| AbSlidingTabView (Context context, AttributeSet attrs) | |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
| void | onAttachedToWindow () |
| void | onDetachedFromWindow () |
| void | notifyTabDataSetChanged () |
| void | setCurrentItem (int item) |
| void | setOnPageChangeListener (ViewPager.OnPageChangeListener listener) |
| void | setTabTextColor (int tabColor) |
| void | setTabSelectColor (int tabColor) |
| void | setTabTextSize (int tabTextSize) |
| void | setTabBackgroundResource (int resid) |
| void | setTabLayoutBackgroundResource (int resid) |
| void | addItemViews (List< String > tabTexts, List< Fragment > fragments) |
| void | addItemViews (List< String > tabTexts, List< Fragment > fragments, List< Drawable > drawables) |
| void | addItemView (String tabText, Fragment fragment) |
| void | addItemView (String tabText, Fragment fragment, Drawable drawable) |
| void | removeItemView (int index) |
| void | removeAllItemViews () |
| ViewPager | getViewPager () |
| void | setTabPadding (int left, int top, int right, int bottom) |
Public 属性 | |
| int | mMaxTabWidth |
Private 成员函数 | |
| void | animateToTab (final int position) |
| void | addTab (String text, int index) |
| void | addTab (String text, int index, Drawable top) |
Private 属性 | |
| Context | context |
| Runnable | mTabSelector |
| ViewPager.OnPageChangeListener | mListener |
| int | mSelectedTabIndex |
| int | tabBackgroundResource = -1 |
| int | tabTextSize = 30 |
| int | tabTextColor = Color.BLACK |
| int | tabSelectColor = Color.BLACK |
| LinearLayout | mTabLayout = null |
| HorizontalScrollView | mTabScrollView = null |
| ViewPager | mViewPager |
| List< String > | tabItemTextList = null |
| List< Drawable > | tabItemDrawableList = null |
| ArrayList< Fragment > | pagerItemList = null |
| ArrayList< TextView > | tabItemList = null |
| AbFragmentPagerAdapter | mFragmentPagerAdapter = null |
| OnClickListener | mTabClickListener |
© 2012 amsoft.cn 名称:AbSlidingTabView.java 描述:滑动的tab,tab不固定超出后可滑动.
|
inline |
Instantiates a new ab sliding tab view.
| context | the context |
|
inline |
Instantiates a new ab sliding tab view.
| context | the context |
| attrs | the attrs |
|
inline |
描述:增加一个内容与tab.
| tabText | the tab text |
| fragment | the fragment |
|
inline |
描述:增加一个内容与tab.
| tabText | the tab text |
| fragment | the fragment |
| drawable | the drawable |
|
inline |
描述:增加一组内容与tab.
| tabTexts | the tab texts |
| fragments | the fragments |
|
inline |
描述:增加一组内容与tab.
| tabTexts | the tab texts |
| fragments | the fragments |
| drawables | the drawables |
|
inlineprivate |
描述:创造一个Tab.
| text | the text |
| index | the index |
|
inlineprivate |
描述:创造一个Tab.
| text | the text |
| index | the index |
| top | the top |
|
inlineprivate |
Animate to tab.
| position | the position |
|
inline |
描述:获取这个View的ViewPager.
|
inline |
描述:tab有变化刷新.
|
inline |
|
inline |
|
inline |
|
inline |
描述:删除所有.
|
inline |
描述:删除某一个.
| index | the index |
|
inline |
描述:设置显示哪一个.
| item | the new current item |
|
inline |
描述:设置一个外部的监听器.
| listener | the new on page change listener |
|
inline |
描述:设置单个tab的背景选择器.
| resid | the new tab background resource |
|
inline |
描述:设置Tab的背景.
| resid | the new tab layout background resource |
|
inline |
描述:设置每个tab的边距.
| left | the left |
| top | the top |
| right | the right |
| bottom | the bottom |
|
inline |
描述:设置选中的颜色.
| tabColor | the new tab select color |
|
inline |
描述:设置tab文字的颜色.
| tabColor | the new tab text color |
|
inline |
描述:设置文字大小.
| tabTextSize | the new tab text size |
|
private |
The context.
|
private |
内容区域的适配器.
|
private |
The m listener.
| int com.ab.view.sliding.AbSlidingTabView.mMaxTabWidth |
The m max tab width.
|
private |
The m selected tab index.
|
private |
The m tab click listener.
|
private |
tab的线性布局.
|
private |
tab的线性布局父.
|
private |
The m tab selector.
|
private |
The m view pager.
|
private |
内容的View.
|
private |
tab的背景.
|
private |
tab的图标.
|
private |
tab的列表.
|
private |
tab的文字.
|
private |
tab的选中文字颜色.
|
private |
tab的文字颜色.
|
private |
tab的文字大小.
1.8.8