| AndBase开发框架 1.5.7

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
类 | Public 成员函数 | Public 属性 | Private 属性 | 静态 Private 属性 | 所有成员列表
com.ab.view.sliding.AbSlidingTabView2类 参考
类 com.ab.view.sliding.AbSlidingTabView2 继承关系图:

## 类
class | MyOnPageChangeListener

## Public 成员函数
| AbSlidingTabView2 (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 | setTabLayoutBackground (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

## 静态 Private 属性
static String | TAG = "AbSlidingTabView"
static final boolean | D = AbAppData.DEBUG

## 详细描述

名称：AbSlidingTabView 描述：滑动的tab.

作者
  zhaoqp

日期
  2011-11-28

版本

## 构造及析构函数说明

com.ab.view.sliding.AbSlidingTabView2.AbSlidingTabView2 | ( | Context | context,
|  | AttributeSet | attrs
| ) |  |
| inline

## 成员函数说明

void com.ab.view.sliding.AbSlidingTabView2.addItemView | ( | String | tabText,
|  | Fragment | fragment
| ) |  |
| inline

描述：增加一个内容与tab

异常

void com.ab.view.sliding.AbSlidingTabView2.addItemViews | ( | List< String > | tabTexts,
|  | List< Fragment > | fragments
| ) |  |
| inline

描述：增加一组内容与tab

异常

void com.ab.view.sliding.AbSlidingTabView2.computeTabImg | ( | int | index) |  |
| inline

描述：滑动条

参数

  index |

异常

int com.ab.view.sliding.AbSlidingTabView2.getTabColor | ( | ) |  |
| inline

LinearLayout com.ab.view.sliding.AbSlidingTabView2.getTabLayout | ( | ) |  |
| inline

int com.ab.view.sliding.AbSlidingTabView2.getTabSlidingHeight | ( | ) |  |
| inline

int com.ab.view.sliding.AbSlidingTabView2.getTabTextSize | ( | ) |  |
| inline

ViewPager com.ab.view.sliding.AbSlidingTabView2.getViewPager | ( | ) |  |
| inline

描述：获取这个View的ViewPager

返回

异常

void com.ab.view.sliding.AbSlidingTabView2.imageSlide | ( | View | v,
|  | int | startX,
|  | int | toX,
|  | int | startY,
|  | int | toY
| ) |  |
| inline

描述：滑动动画

参数

  v |
  startX |
  toX |
  startY |
  toY |

异常

void com.ab.view.sliding.AbSlidingTabView2.onMeasure | ( | int | widthMeasureSpec,
|  | int | heightMeasureSpec
| ) |  |
| inline

void com.ab.view.sliding.AbSlidingTabView2.removeAllItemView | ( | int | index) |  |
| inline

描述：删除所有

异常

void com.ab.view.sliding.AbSlidingTabView2.removeItemView | ( | int | index) |  |
| inline

描述：删除某一个

参数

  index |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabColor | ( | int | tabColor) |  |
| inline

描述：设置tab文字和滑块的颜色

参数

  tabColor |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabLayoutBackground | ( | int | res) |  |
| inline

描述：设置Tab的背景

参数

  res |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabPadding | ( | int | left,
|  | int | top,
|  | int | right,
|  | int | bottom
| ) |  |
| inline

描述：设置每个tab的边距

参数

  left |
  top |
  right |
  bottom |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabSelectColor | ( | int | tabColor) |  |
| inline

描述：设置选中和滑块的颜色

参数

  tabColor |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabSlidingHeight | ( | int | tabSlidingHeight) |  |
| inline

描述：设置滑块的高度

参数

  tabSlidingHeight |

异常

void com.ab.view.sliding.AbSlidingTabView2.setTabTextSize | ( | int | tabTextSize) |  |
| inline

## 类成员变量说明

Context com.ab.view.sliding.AbSlidingTabView2.context
| private

The context.

final boolean com.ab.view.sliding.AbSlidingTabView2.D = AbAppData.DEBUG
| static private

The Constant D.

LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingTabView2.layoutParamsFF = null

The layout params ff.

LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingTabView2.layoutParamsFW = null

The layout params fw.

LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingTabView2.layoutParamsWW = null

The layout params ww.

AbFragmentPagerAdapter com.ab.view.sliding.AbSlidingTabView2.mFragmentPagerAdapter = null
| private

内容区域的适配器

int com.ab.view.sliding.AbSlidingTabView2.mSelectedTabIndex = 0
| private

当前页卡编号

ImageView com.ab.view.sliding.AbSlidingTabView2.mTabImg
| private

滑块动画图片

LinearLayout com.ab.view.sliding.AbSlidingTabView2.mTabLayout = null
| private

tab的线性布局.

AbHorizontalScrollView com.ab.view.sliding.AbSlidingTabView2.mTabScrollView = null
| private

tab的线性布局父.

ViewPager com.ab.view.sliding.AbSlidingTabView2.mViewPager
| private

The m view pager.

ArrayList<Fragment> com.ab.view.sliding.AbSlidingTabView2.pagerItemList = null
| private

内容的View

int com.ab.view.sliding.AbSlidingTabView2.scrollX = 0
| private

当前移动的距离

int com.ab.view.sliding.AbSlidingTabView2.startX = 0
| private

当前tab的位置

int com.ab.view.sliding.AbSlidingTabView2.tabColor = Color.BLACK
| private

tab的文字颜色

ArrayList<TextView> com.ab.view.sliding.AbSlidingTabView2.tabItemList = null
| private

tab的列表

List<String> com.ab.view.sliding.AbSlidingTabView2.tabItemTextList = null
| private

tab的文字

int com.ab.view.sliding.AbSlidingTabView2.tabSelectColor = Color.BLACK
| private

tab的选中文字颜色

int com.ab.view.sliding.AbSlidingTabView2.tabSlidingHeight = 5
| private

tab滑块的高度

int com.ab.view.sliding.AbSlidingTabView2.tabTextSize = 16
| private

tab的文字大小

String com.ab.view.sliding.AbSlidingTabView2.TAG = "AbSlidingTabView"
| static private

The tag.

该类的文档由以下文件生成:

- src/com/ab/view/sliding/AbSlidingTabView2.java