| AndBase开发框架 1.6

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

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

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

## 类
class | MyOnPageChangeListener

## Public 成员函数
| AbSlidingSmoothFixTabView (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 | setTabSelectedColor (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
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 | tabSelectedColor = Color.BLACK
int | tabSlidingHeight = 5
int | startX = 0
int | mWidth = 0

## 详细描述

© 2012 amsoft.cn 名称：AbSlidingSmoothFixTabView.java 描述：滑动的tab,tab固定屏幕内.

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-05-17 下午6:46:29

## 构造及析构函数说明

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

Instantiates a new ab sliding smooth fix tab view.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

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

描述：增加一个内容与tab.

参数

  tabText | the tab text
  fragment | the fragment

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

描述：增加一组内容与tab.

参数

  tabTexts | the tab texts
  fragments | the fragments

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

描述：滑动条.

参数

  index | the index

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

Gets the tab color.

返回
  the tab color

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

Gets the tab layout.

返回
  the tab layout

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

Gets the tab sliding height.

返回
  the tab sliding height

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

Gets the tab text size.

返回
  the tab text size

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

描述：获取这个View的ViewPager.

返回
  the view pager

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

描述：滑动动画.

参数

  v | the v
  startX | the start x
  toX | the to x
  startY | the start y
  toY | the to y

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

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

描述：删除所有.

参数

  index | the index

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

描述：删除某一个.

参数

  index | the index

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

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

参数

  tabColor | the new tab color

void com.ab.view.sliding.AbSlidingSmoothFixTabView.setTabLayoutBackgroundResource | ( | int | res | ) |
| inline

描述：设置Tab的背景.

参数

  res | the new tab layout background resource

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

描述：设置每个tab的边距.

参数

  left | the left
  top | the top
  right | the right
  bottom | the bottom

void com.ab.view.sliding.AbSlidingSmoothFixTabView.setTabSelectedColor | ( | int | tabColor | ) |
| inline

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

参数

  tabColor | the new tab selected color

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

描述：设置滑块的高度.

参数

  tabSlidingHeight | the new tab sliding height

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

Sets the tab text size.

参数

  tabTextSize | the new tab text size

## 类成员变量说明

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

The context.

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

The layout params ff.

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

The layout params fw.

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

The layout params ww.

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

内容区域的适配器.

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

当前页卡编号.

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

滑块动画图片.

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

tab的线性布局.

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

The m view pager.

int com.ab.view.sliding.AbSlidingSmoothFixTabView.mWidth = 0
| private

The m width.

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

内容的View.

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

当前tab的位置.

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

tab的文字颜色.

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

tab的列表.

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

tab的文字.

int com.ab.view.sliding.AbSlidingSmoothFixTabView.tabSelectedColor = Color.BLACK
| private

tab的选中文字颜色.

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

tab滑块的高度.

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

tab的文字大小.

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

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