类 | |
| class | MyOnPageChangeListener |
Public 成员函数 | |
| AbSlidingSmoothTabView (Context context, AttributeSet attrs) | |
| void | imageSlide (View v, int startX, int toX, int startY, int toY) |
| void | computeTabImg (int index) |
| void | addItemViews (List< String > tabTexts, List< Fragment > fragments) |
| void | addItemView (String tabText, Fragment fragment) |
| void | removeItemView (int index) |
| void | removeAllItemView (int index) |
| ViewPager | getViewPager () |
| LinearLayout | getTabLayout () |
| void | setTabLayoutBackgroundResource (int res) |
| int | getTabColor () |
| void | setTabColor (int tabColor) |
| void | setTabSelectColor (int tabColor) |
| int | getTabTextSize () |
| void | setTabTextSize (int tabTextSize) |
| void | setTabPadding (int left, int top, int right, int bottom) |
| int | getTabSlidingHeight () |
| void | setTabSlidingHeight (int tabSlidingHeight) |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
Public 属性 | |
| LinearLayout.LayoutParams | layoutParamsFF = null |
| LinearLayout.LayoutParams | layoutParamsFW = null |
| LinearLayout.LayoutParams | layoutParamsWW = null |
Private 属性 | |
| Context | context |
| LinearLayout | mTabLayout = null |
| AbHorizontalScrollView | mTabScrollView = null |
| ViewPager | mViewPager |
| ArrayList< TextView > | tabItemList = null |
| ArrayList< Fragment > | pagerItemList = null |
| List< String > | tabItemTextList = null |
| ImageView | mTabImg |
| int | mSelectedTabIndex = 0 |
| AbFragmentPagerAdapter | mFragmentPagerAdapter = null |
| int | tabTextSize = 16 |
| int | tabColor = Color.BLACK |
| int | tabSelectColor = Color.BLACK |
| int | tabSlidingHeight = 5 |
| int | startX = 0 |
| int | scrollX = 0 |
© 2012 amsoft.cn 名称:AbSlidingSmoothTabView.java 描述:滑动的tab,tab不固定超出后可滑动.
|
inline |
Instantiates a new ab sliding smooth tab view.
| context | the context |
| attrs | the attrs |
|
inline |
描述:增加一个内容与tab.
| tabText | the tab text |
| fragment | the fragment |
|
inline |
描述:增加一组内容与tab.
| tabTexts | the tab texts |
| fragments | the fragments |
|
inline |
描述:滑动条.
| index | the index |
|
inline |
Gets the tab color.
|
inline |
Gets the tab layout.
|
inline |
Gets the tab sliding height.
|
inline |
Gets the tab text size.
|
inline |
描述:获取这个View的ViewPager.
|
inline |
描述:滑动动画.
| v | the v |
| startX | the start x |
| toX | the to x |
| startY | the start y |
| toY | the to y |
|
inline |
|
inline |
描述:删除所有.
| index | the index |
|
inline |
描述:删除某一个.
| index | the index |
|
inline |
描述:设置tab文字和滑块的颜色.
| tabColor | the new tab color |
|
inline |
描述:设置Tab的背景.
| res | 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 |
描述:设置滑块的高度.
| tabSlidingHeight | the new tab sliding height |
|
inline |
Sets the tab text size.
| tabTextSize | the new tab text size |
|
private |
The context.
| LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingSmoothTabView.layoutParamsFF = null |
The layout params ff.
| LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingSmoothTabView.layoutParamsFW = null |
The layout params fw.
| LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingSmoothTabView.layoutParamsWW = null |
The layout params ww.
|
private |
内容区域的适配器.
|
private |
当前页卡编号.
|
private |
滑块动画图片.
|
private |
tab的线性布局.
|
private |
tab的线性布局父.
|
private |
The m view pager.
|
private |
内容的View.
|
private |
当前移动的距离.
|
private |
当前tab的位置.
|
private |
tab的文字颜色.
|
private |
tab的列表.
|
private |
tab的文字.
|
private |
tab的选中文字颜色.
|
private |
tab滑块的高度.
|
private |
tab的文字大小.
1.8.8