类 | |
| class | MyOnPageChangeListener |
Public 成员函数 | |
| AbBottomTabView (Context context, AttributeSet attrs) | |
| void | setCurrentItem (int index) |
| void | setOnPageChangeListener (ViewPager.OnPageChangeListener listener) |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
| void | setTabBackgroundResource (int resid) |
| void | setTabLayoutBackgroundResource (int resid) |
| int | getTabTextSize () |
| void | setTabTextSize (int tabTextSize) |
| void | setTabTextColor (int tabColor) |
| void | setTabSelectColor (int tabColor) |
| void | notifyTabDataSetChanged () |
| 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 drawableNormal, Drawable drawablePressed) |
| void | removeItemView (int index) |
| void | removeAllItemViews () |
| ViewPager | getViewPager () |
| void | setTabPadding (int left, int top, int right, int bottom) |
Private 成员函数 | |
| void | addTab (String text, int index) |
| void | addTab (String text, int index, Drawable top) |
Private 属性 | |
| Context | context |
| LinearLayout | mTabLayout = null |
| ViewPager | mViewPager |
| ViewPager.OnPageChangeListener | mListener |
| ArrayList< TextView > | tabItemList = null |
| ArrayList< Fragment > | pagerItemList = null |
| List< String > | tabItemTextList = null |
| List< Drawable > | tabItemDrawableList = null |
| int | mSelectedTabIndex = 0 |
| AbFragmentPagerAdapter | mFragmentPagerAdapter = null |
| int | tabBackgroundResource = -1 |
| int | tabTextSize = 30 |
| int | tabTextColor = Color.BLACK |
| int | tabSelectColor = Color.WHITE |
| OnClickListener | mTabClickListener |
© 2012 amsoft.cn 名称:AbSlidingTabView.java 描述:滑动的tab.
|
inline |
Instantiates a new ab bottom 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 |
| drawableNormal | the drawable normal |
| drawablePressed | the drawable pressed |
|
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 |
|
inline |
Gets the tab text size.
|
inline |
描述:获取这个View的ViewPager.
|
inline |
描述:tab有变化刷新.
|
inline |
|
inline |
描述:删除所有.
|
inline |
描述:删除某一个.
| index | the index |
|
inline |
描述:设置显示哪一个.
| index | 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 |
Sets the tab text size.
| tabTextSize | the new tab text size |
|
private |
The context.
|
private |
内容区域的适配器.
|
private |
The m listener.
|
private |
当前选中编号.
|
private |
The m tab click listener.
|
private |
tab的线性布局.
|
private |
The m view pager.
|
private |
内容的View.
|
private |
tab的背景.
|
private |
tab的图标.
|
private |
tab的列表.
|
private |
tab的文字.
|
private |
tab的选中文字颜色.
|
private |
tab的文字颜色.
|
private |
tab的文字大小.
1.8.8