AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
| Public 成员函数 | Protected 成员函数 | 包函数 | 包属性 | Private 成员函数 | Private 属性 | 所有成员列表
com.ab.view.carousel.CarouselSpinner类 参考abstract
类 com.ab.view.carousel.CarouselSpinner 继承关系图:
com.ab.view.carousel.CarouselAdapter< T extends Adapter > com.ab.view.carousel.CarouselImageView com.ab.view.carousel.CarouselView

class  RecycleBin
 
class  SavedState
 

Public 成员函数

 CarouselSpinner (Context context)
 
 CarouselSpinner (Context context, AttributeSet attrs)
 
 CarouselSpinner (Context context, AttributeSet attrs, int defStyle)
 
SpinnerAdapter getAdapter ()
 
void setAdapter (SpinnerAdapter adapter)
 
View getSelectedView ()
 
void setSelection (int position, boolean animate)
 
void setSelection (int position)
 
void requestLayout ()
 
int getCount ()
 
int pointToPositionView (int x, int y)
 
int pointToPositionImage (int x, int y)
 
Parcelable onSaveInstanceState ()
 
void onRestoreInstanceState (Parcelable state)
 

Protected 成员函数

void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 
ViewGroup.LayoutParams generateDefaultLayoutParams ()
 

包函数

void setSelectionInt (int position, boolean animate)
 
abstract void layout (int delta, boolean animate)
 
void resetList ()
 
int getChildHeight (View child)
 
int getChildWidth (View child)
 
void recycleAllViews ()
 

包属性

SpinnerAdapter mAdapter
 
int mHeightMeasureSpec
 
int mWidthMeasureSpec
 
boolean mBlockLayoutRequests
 
int mSelectionLeftPadding = 0
 
int mSelectionTopPadding = 0
 
int mSelectionRightPadding = 0
 
int mSelectionBottomPadding = 0
 
final Rect mSpinnerPadding = new Rect()
 
final RecycleBin mRecycler = new RecycleBin()
 

Private 成员函数

void initCarouselSpinner ()
 

Private 属性

DataSetObserver mDataSetObserver
 

额外继承的成员函数

详细描述

The Class CarouselSpinner.

构造及析构函数说明

com.ab.view.carousel.CarouselSpinner.CarouselSpinner ( Context  context)
inline

Instantiates a new carousel spinner.

参数
contextthe context
com.ab.view.carousel.CarouselSpinner.CarouselSpinner ( Context  context,
AttributeSet  attrs 
)
inline

Instantiates a new carousel spinner.

参数
contextthe context
attrsthe attrs
com.ab.view.carousel.CarouselSpinner.CarouselSpinner ( Context  context,
AttributeSet  attrs,
int  defStyle 
)
inline

Instantiates a new carousel spinner.

参数
contextthe context
attrsthe attrs
defStylethe def style

成员函数说明

ViewGroup.LayoutParams com.ab.view.carousel.CarouselSpinner.generateDefaultLayoutParams ( )
inlineprotected

描述:TODO.

版本
v1.0
返回
the view group. layout params
参见
android.view.ViewGroup::generateDefaultLayoutParams()
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
SpinnerAdapter com.ab.view.carousel.CarouselSpinner.getAdapter ( )
inline

描述:TODO.

版本
v1.0
返回
the adapter
参见
com.ab.view.carousel.CarouselAdapter::getAdapter()
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
int com.ab.view.carousel.CarouselSpinner.getChildHeight ( View  child)
inlinepackage

Gets the child height.

参数
childthe child
返回
the child height
int com.ab.view.carousel.CarouselSpinner.getChildWidth ( View  child)
inlinepackage

Gets the child width.

参数
childthe child
返回
the child width
int com.ab.view.carousel.CarouselSpinner.getCount ( )
inline

描述:TODO.

版本
v1.0
返回
the count
参见
com.ab.view.carousel.CarouselAdapter::getCount()
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
View com.ab.view.carousel.CarouselSpinner.getSelectedView ( )
inline

描述:TODO.

版本
v1.0
返回
the selected view
参见
com.ab.view.carousel.CarouselAdapter::getSelectedView()
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
void com.ab.view.carousel.CarouselSpinner.initCarouselSpinner ( )
inlineprivate

Common code for different constructor flavors.

abstract void com.ab.view.carousel.CarouselSpinner.layout ( int  delta,
boolean  animate 
)
abstractpackage

Layout.

参数
deltathe delta
animatethe animate
void com.ab.view.carousel.CarouselSpinner.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
inlineprotected

On measure.

参数
widthMeasureSpecthe width measure spec
heightMeasureSpecthe height measure spec
参见
android.view.View::measure(int, int)

Figure out the dimensions of this Spinner. The width comes from the widthMeasureSpec as Spinnners can't have their width set to UNSPECIFIED. The height is based on the height of the selected item plus padding.

void com.ab.view.carousel.CarouselSpinner.onRestoreInstanceState ( Parcelable  state)
inline

描述:TODO.

版本
v1.0
参数
statethe state
参见
android.view.View::onRestoreInstanceState(android.os.Parcelable)
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
Parcelable com.ab.view.carousel.CarouselSpinner.onSaveInstanceState ( )
inline

描述:TODO.

版本
v1.0
返回
the parcelable
参见
android.view.View::onSaveInstanceState()
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
int com.ab.view.carousel.CarouselSpinner.pointToPositionImage ( int  x,
int  y 
)
inline

Maps a point to a position in the list.

参数
xX in local coordinate
yY in local coordinate
返回
The position of the item which contains the specified point, or INVALID_POSITION if the point does not intersect an item.
int com.ab.view.carousel.CarouselSpinner.pointToPositionView ( int  x,
int  y 
)
inline

Maps a point to a position in the list.

参数
xX in local coordinate
yY in local coordinate
返回
The position of the item which contains the specified point, or INVALID_POSITION if the point does not intersect an item.
void com.ab.view.carousel.CarouselSpinner.recycleAllViews ( )
inlinepackage

Recycle all views.

void com.ab.view.carousel.CarouselSpinner.requestLayout ( )
inline

Override to prevent spamming ourselves with layout requests as we place views.

参见
android.view.View::requestLayout()
void com.ab.view.carousel.CarouselSpinner.resetList ( )
inlinepackage

Clear out all children from the list.

void com.ab.view.carousel.CarouselSpinner.setAdapter ( SpinnerAdapter  adapter)
inline

描述:TODO.

版本
v1.0
参数
adapterthe new adapter
参见
com.ab.view.carousel.CarouselAdapter::setAdapter(android.widget.Adapter)
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
void com.ab.view.carousel.CarouselSpinner.setSelection ( int  position,
boolean  animate 
)
inline

Jump directly to a specific item in the adapter data.

参数
positionthe position
animatethe animate
void com.ab.view.carousel.CarouselSpinner.setSelection ( int  position)
inline

描述:TODO.

版本
v1.0
参数
positionthe new selection
参见
com.ab.view.carousel.CarouselAdapter::setSelection(int)
作者
: amsoft.cn
日期
:2013-11-28 上午11:14:34
void com.ab.view.carousel.CarouselSpinner.setSelectionInt ( int  position,
boolean  animate 
)
inlinepackage

Makes the item at the supplied position selected.

参数
positionPosition to select
animateShould the transition be animated

类成员变量说明

SpinnerAdapter com.ab.view.carousel.CarouselSpinner.mAdapter
package

The m adapter.

boolean com.ab.view.carousel.CarouselSpinner.mBlockLayoutRequests
package

The m block layout requests.

DataSetObserver com.ab.view.carousel.CarouselSpinner.mDataSetObserver
private

The m data set observer.

int com.ab.view.carousel.CarouselSpinner.mHeightMeasureSpec
package

The m height measure spec.

final RecycleBin com.ab.view.carousel.CarouselSpinner.mRecycler = new RecycleBin()
package

The m recycler.

int com.ab.view.carousel.CarouselSpinner.mSelectionBottomPadding = 0
package

The m selection bottom padding.

int com.ab.view.carousel.CarouselSpinner.mSelectionLeftPadding = 0
package

The m selection left padding.

int com.ab.view.carousel.CarouselSpinner.mSelectionRightPadding = 0
package

The m selection right padding.

int com.ab.view.carousel.CarouselSpinner.mSelectionTopPadding = 0
package

The m selection top padding.

final Rect com.ab.view.carousel.CarouselSpinner.mSpinnerPadding = new Rect()
package

The m spinner padding.

int com.ab.view.carousel.CarouselSpinner.mWidthMeasureSpec
package

The m width measure spec.


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