| AndBase开发框架 1.6

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

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

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

## 类
class | FlingRotateRunnable

## Public 成员函数
| CarouselView (Context context)
| CarouselView (Context context, AttributeSet attrs)
| CarouselView (Context context, AttributeSet attrs, int defStyle)
boolean | onTouchEvent (MotionEvent event)
boolean | showContextMenu ()
boolean | onKeyDown (int keyCode, KeyEvent event)
boolean | onKeyUp (int keyCode, KeyEvent event)
ViewGroup.LayoutParams | generateLayoutParams (AttributeSet attrs)
void | dispatchSetSelected (boolean selected)
boolean | showContextMenuForChild (View originalView)
boolean | dispatchKeyEvent (KeyEvent event)
boolean | onDown (MotionEvent e)
boolean | onFling (MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
void | onLongPress (MotionEvent e)
boolean | onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
boolean | onSingleTapUp (MotionEvent e)
void | onShowPress (MotionEvent e)
void | setCallbackDuringFling (boolean shouldCallback)
void | setCallbackOnUnselectedItemClick (boolean shouldCallback)
void | setAnimationDuration (int animationDurationMillis)
void | setGravity (int gravity)
Public 成员函数 继承自 com.ab.view.carousel.CarouselSpinner
| 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)
Public 成员函数 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
| CarouselAdapter (Context context)
| CarouselAdapter (Context context, AttributeSet attrs)
| CarouselAdapter (Context context, AttributeSet attrs, int defStyle)
void | setOnItemClickListener (OnItemClickListener listener)
final OnItemClickListener | getOnItemClickListener ()
boolean | performItemClick (View view, int position, long id)
void | setOnItemLongClickListener (OnItemLongClickListener listener)
final OnItemLongClickListener | getOnItemLongClickListener ()
void | setOnItemSelectedListener (OnItemSelectedListener listener)
final OnItemSelectedListener | getOnItemSelectedListener ()
abstract T | getAdapter ()
abstract void | setAdapter (T adapter)
void | addView (View child)
void | addView (View child, int index)
void | addView (View child, LayoutParams params)
void | addView (View child, int index, LayoutParams params)
void | removeView (View child)
void | removeViewAt (int index)
void | removeAllViews ()
.CapturedViewProperty int | getSelectedItemPosition ()
.CapturedViewProperty long | getSelectedItemId ()
abstract View | getSelectedView ()
Object | getSelectedItem ()
.CapturedViewProperty int | getCount ()
int | getPositionForView (View view)
int | getFirstVisiblePosition ()
int | getLastVisiblePosition ()
abstract void | setSelection (int position)
void | setEmptyView (View emptyView)
View | getEmptyView ()
void | setFocusable (boolean focusable)
void | setFocusableInTouchMode (boolean focusable)
Object | getItemAtPosition (int position)
long | getItemIdAtPosition (int position)
void | setOnClickListener (OnClickListener l)
boolean | dispatchPopulateAccessibilityEvent (AccessibilityEvent event)

## Protected 成员函数
int | computeHorizontalScrollExtent ()
int | computeHorizontalScrollOffset ()
int | computeHorizontalScrollRange ()
ContextMenuInfo | getContextMenuInfo ()
void | onFocusChanged (boolean gainFocus, int direction, Rect previouslyFocusedRect)
boolean | checkLayoutParams (ViewGroup.LayoutParams p)
ViewGroup.LayoutParams | generateLayoutParams (ViewGroup.LayoutParams p)
void | dispatchSetPressed (boolean pressed)
int | getChildDrawingOrder (int childCount, int i)
boolean | getChildStaticTransformation (View child, Transformation transformation)
void | onLayout (boolean changed, int l, int t, int r, int b)
Protected 成员函数 继承自 com.ab.view.carousel.CarouselSpinner
void | onMeasure (int widthMeasureSpec, int heightMeasureSpec)
ViewGroup.LayoutParams | generateDefaultLayoutParams ()
Protected 成员函数 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
void | onLayout (boolean changed, int left, int top, int right, int bottom)
void | dispatchSaveInstanceState (SparseArray< Parcelable > container)
void | dispatchRestoreInstanceState (SparseArray< Parcelable > container)
boolean | canAnimate ()

## 包函数
void | layout (int delta, boolean animate)
void | selectionChanged ()
void | setSelectedPositionInt (int position)
float | getLimitedMotionScrollAmount (boolean motionToLeft, float deltaX)
int | getLimitedMotionScrollAmount (boolean motionToLeft, int deltaX)
void | onCancel ()
void | onUp ()
void | scrollToChild (int i)
void | trackMotionScroll (float deltaAngle)
包函数 继承自 com.ab.view.carousel.CarouselSpinner
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 ()
包函数 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
boolean | isInFilterMode ()
void | checkFocus ()
void | selectionChanged ()
void | handleDataChanged ()
void | checkSelectionChanged ()
int | findSyncPosition ()
int | lookForSelectablePosition (int position, boolean lookDown)
void | setSelectedPositionInt (int position)
void | setNextSelectedPositionInt (int position)
void | rememberSyncState ()

## Private 成员函数
void | Calculate3DPosition (CarouselItemView child, int diameter, float angleOffset)
int | calculateTop (View child, boolean duringLayout)
boolean | dispatchLongPress (View view, int position, long id)
void | dispatchPress (View child)
void | dispatchUnpress ()
int | getCenterOfGallery ()
void | makeAndAddView (int position, float angleOffset)
void | onFinishedMovement ()
void | scrollIntoSlots ()
void | setUpChild (CarouselItemView child, int index, float angleOffset)
void | updateSelectedItemMetadata ()

## 静态 Private 成员函数
static int | getCenterOfView (View view)

## Private 属性
AdapterContextMenuInfo | mContextMenuInfo
int | mAnimationDuration = 900
Camera | mCamera = new Camera()
Runnable | mDisableSuppressSelectionChangedRunnable
int | mDownTouchPosition
View | mDownTouchView
FlingRotateRunnable | mFlingRunnable = new FlingRotateRunnable()
GestureDetector | mGestureDetector
int | mGravity
boolean | mIsFirstScroll
int | mMaxQuantity = MAX_QUANTITY
int | mMinQuantity = MIN_QUANTITY
boolean | mReceivedInvokeKeyDown
View | mSelectedChild
boolean | mShouldCallbackDuringFling = true
boolean | mShouldCallbackOnUnselectedItemClick = true
boolean | mShouldStopFling
boolean | mSuppressSelectionChanged
float | mTheta = (float)(15.0f*(Math.PI/180.0))
boolean | mUseReflection

## 静态 Private 属性
static final String | TAG = CarouselView.class.getSimpleName()
static final boolean | localLOGV = false
static final int | MIN_QUANTITY = 3
static final int | MAX_QUANTITY = 12
static final float | MAX_THETA = 15.0f
static final int | SCROLL_TO_FLING_UNCERTAINTY_TIMEOUT = 250

## 额外继承的成员函数
静态 Public 属性 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
static final int | ITEM_VIEW_TYPE_IGNORE = -1
static final int | ITEM_VIEW_TYPE_HEADER_OR_FOOTER = -2
static final int | INVALID_POSITION = -1
static final long | INVALID_ROW_ID = Long.MIN_VALUE
包属性 继承自 com.ab.view.carousel.CarouselSpinner
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()
包属性 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
.ExportedProperty int | mFirstPosition = 0
int | mSpecificTop
int | mSyncPosition
long | mSyncRowId = INVALID_ROW_ID
long | mSyncHeight
boolean | mNeedSync = false
int | mSyncMode
boolean | mInLayout = false
OnItemSelectedListener | mOnItemSelectedListener
OnItemClickListener | mOnItemClickListener
OnItemLongClickListener | mOnItemLongClickListener
boolean | mDataChanged
.ExportedProperty int | mNextSelectedPosition = INVALID_POSITION
long | mNextSelectedRowId = INVALID_ROW_ID
.ExportedProperty int | mSelectedPosition = INVALID_POSITION
long | mSelectedRowId = INVALID_ROW_ID
.ExportedProperty int | mItemCount
int | mOldItemCount
int | mOldSelectedPosition = INVALID_POSITION
long | mOldSelectedRowId = INVALID_ROW_ID
boolean | mBlockLayoutRequests = false
静态包属性 继承自 com.ab.view.carousel.CarouselAdapter< T extends Adapter >
static final int | SYNC_SELECTED_POSITION = 0
static final int | SYNC_FIRST_POSITION = 1
static final int | SYNC_MAX_DURATION_MILLIS = 100

## 详细描述

© 2012 amsoft.cn 名称：CarouselView.java

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-11-28 上午11:10:13

## 构造及析构函数说明

com.ab.view.carousel.CarouselView.CarouselView | ( | Context | context | ) |
| inline

Instantiates a new carousel view.

参数

  context | the context

com.ab.view.carousel.CarouselView.CarouselView | ( | Context | context,
|  | AttributeSet | attrs
| ) |  |
| inline

Instantiates a new carousel view.

参数

  context | the context
  attrs | the attrs

com.ab.view.carousel.CarouselView.CarouselView | ( | Context | context,
|  | AttributeSet | attrs,
|  | int | defStyle
| ) |  |
| inline

Instantiates a new carousel view.

参数

  context | the context
  attrs | the attrs
  defStyle | the def style

## 成员函数说明

void com.ab.view.carousel.CarouselView.Calculate3DPosition | ( | CarouselItemView | child,
|  | int | diameter,
|  | float | angleOffset
| ) |  |
| inline private

Calculate3 d position.

参数

  child | the child
  diameter | the diameter
  angleOffset | the angle offset

int com.ab.view.carousel.CarouselView.calculateTop | ( | View | child,
|  | boolean | duringLayout
| ) |  |
| inline private

Figure out vertical placement based on mGravity.

参数

  child | Child to place
  duringLayout | the during layout

返回
  Where the top of the child should be

boolean com.ab.view.carousel.CarouselView.checkLayoutParams | ( | ViewGroup.LayoutParams | p | ) |
| inline protected

描述：TODO.

版本
  v1.0

参数

  p | the p

返回
  true, if successful

参见
  android.view.ViewGroup::checkLayoutParams(android.view.ViewGroup.LayoutParams)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

int com.ab.view.carousel.CarouselView.computeHorizontalScrollExtent | ( |  | ) |
| inline protected

Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the length of the thumb within the scrollbar's track.

返回
  the int

int com.ab.view.carousel.CarouselView.computeHorizontalScrollOffset | ( |  | ) |
| inline protected

Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the position of the thumb within the scrollbar's track.

返回
  the int

int com.ab.view.carousel.CarouselView.computeHorizontalScrollRange | ( |  | ) |
| inline protected

Compute the horizontal range that the horizontal scrollbar represents.

返回
  the int

boolean com.ab.view.carousel.CarouselView.dispatchKeyEvent | ( | KeyEvent | event | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  event | the event

返回
  true, if successful

参见
  android.view.ViewGroup::dispatchKeyEvent(android.view.KeyEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

boolean com.ab.view.carousel.CarouselView.dispatchLongPress | ( | View | view,
|  | int | position,
|  | long | id
| ) |  |
| inline private

Dispatch long press.

参数

  view | the view
  position | the position
  id | the id

返回
  true, if successful

void com.ab.view.carousel.CarouselView.dispatchPress | ( | View | child | ) |
| inline private

Dispatch press.

参数

  child | the child

void com.ab.view.carousel.CarouselView.dispatchSetPressed | ( | boolean | pressed | ) |
| inline protected

描述：TODO.

版本
  v1.0

参数

  pressed | the pressed

参见
  android.view.ViewGroup::dispatchSetPressed(boolean)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.dispatchSetSelected | ( | boolean | selected | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  selected | the selected

参见
  android.view.ViewGroup::dispatchSetSelected(boolean)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.dispatchUnpress | ( |  | ) |
| inline private

Dispatch unpress.

ViewGroup.LayoutParams com.ab.view.carousel.CarouselView.generateLayoutParams | ( | ViewGroup.LayoutParams | p | ) |
| inline protected

描述：TODO.

版本
  v1.0

参数

  p | the p

返回
  the view group. layout params

参见
  android.view.ViewGroup::generateLayoutParams(android.view.ViewGroup.LayoutParams)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

ViewGroup.LayoutParams com.ab.view.carousel.CarouselView.generateLayoutParams | ( | AttributeSet | attrs | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  attrs | the attrs

返回
  the view group. layout params

参见
  android.view.ViewGroup::generateLayoutParams(android.util.AttributeSet)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

int com.ab.view.carousel.CarouselView.getCenterOfGallery | ( |  | ) |
| inline private

Gets the center of gallery.

返回
  The center of this Gallery.

static int com.ab.view.carousel.CarouselView.getCenterOfView | ( | View | view | ) |
| inline static private

Gets the center of view.

参数

  view | the view

返回
  The center of the given view.

int com.ab.view.carousel.CarouselView.getChildDrawingOrder | ( | int | childCount,
|  | int | i
| ) |  |
| inline protected

Index of the child to draw for this iteration.

参数

  childCount | the child count
  i | the i

返回
  the child drawing order

boolean com.ab.view.carousel.CarouselView.getChildStaticTransformation | ( | View | child,
|  | Transformation | transformation
| ) |  |
| inline protected

Transform an item depending on it's coordinates.

参数

  child | the child
  transformation | the transformation

返回
  the child static transformation

ContextMenuInfo com.ab.view.carousel.CarouselView.getContextMenuInfo | ( |  | ) |
| inline protected

Extra information about the item for which the context menu should be shown.

返回
  the context menu info

float com.ab.view.carousel.CarouselView.getLimitedMotionScrollAmount | ( | boolean | motionToLeft,
|  | float | deltaX
| ) |  |
| inline package

Gets the limited motion scroll amount.

参数

  motionToLeft | the motion to left
  deltaX | the delta x

返回
  the limited motion scroll amount

int com.ab.view.carousel.CarouselView.getLimitedMotionScrollAmount | ( | boolean | motionToLeft,
|  | int | deltaX
| ) |  |
| inline package

Gets the limited motion scroll amount.

参数

  motionToLeft | the motion to left
  deltaX | the delta x

返回
  the limited motion scroll amount

void com.ab.view.carousel.CarouselView.layout | ( | int | delta,
|  | boolean | animate
| ) |  |
| inline package

Setting up images.

参数

  delta | the delta
  animate | the animate

void com.ab.view.carousel.CarouselView.makeAndAddView | ( | int | position,
|  | float | angleOffset
| ) |  |
| inline private

Make and add view.

参数

  position | the position
  angleOffset | the angle offset

void com.ab.view.carousel.CarouselView.onCancel | ( |  | ) |
| inline package

On cancel.

boolean com.ab.view.carousel.CarouselView.onDown | ( | MotionEvent | e | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  e | the e

返回
  true, if successful

参见
  android.view.GestureDetector.OnGestureListener::onDown(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.onFinishedMovement | ( |  | ) |
| inline private

Called when rotation is finished.

boolean com.ab.view.carousel.CarouselView.onFling | ( | MotionEvent | e1,
|  | MotionEvent | e2,
|  | float | velocityX,
|  | float | velocityY
| ) |  |
| inline

描述：TODO.

版本
  v1.0

参数

  e1 | the e1
  e2 | the e2
  velocityX | the velocity x
  velocityY | the velocity y

返回
  true, if successful

参见
  android.view.GestureDetector.OnGestureListener::onFling(android.view.MotionEvent, android.view.MotionEvent, float, float)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.onFocusChanged | ( | boolean | gainFocus,
|  | int | direction,
|  | Rect | previouslyFocusedRect
| ) |  |
| inline protected

描述：TODO.

版本
  v1.0

参数

  gainFocus | the gain focus
  direction | the direction
  previouslyFocusedRect | the previously focused rect

参见
  android.view.View::onFocusChanged(boolean, int, android.graphics.Rect)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

boolean com.ab.view.carousel.CarouselView.onKeyDown | ( | int | keyCode,
|  | KeyEvent | event
| ) |  |
| inline

Handles left, right, and clicking.

参数

  keyCode | the key code
  event | the event

返回
  true, if successful

参见
  android.view.View::onKeyDown

boolean com.ab.view.carousel.CarouselView.onKeyUp | ( | int | keyCode,
|  | KeyEvent | event
| ) |  |
| inline

描述：TODO.

版本
  v1.0

参数

  keyCode | the key code
  event | the event

返回
  true, if successful

参见
  android.view.View::onKeyUp(int, android.view.KeyEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.onLayout | ( | boolean | changed,
|  | int | l,
|  | int | t,
|  | int | r,
|  | int | b
| ) |  |
| inline protected

Setting up images after layout changed.

参数

  changed | the changed
  l | the l
  t | the t
  r | the r
  b | the b

void com.ab.view.carousel.CarouselView.onLongPress | ( | MotionEvent | e | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  e | the e

参见
  android.view.GestureDetector.OnGestureListener::onLongPress(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

boolean com.ab.view.carousel.CarouselView.onScroll | ( | MotionEvent | e1,
|  | MotionEvent | e2,
|  | float | distanceX,
|  | float | distanceY
| ) |  |
| inline

描述：TODO.

版本
  v1.0

参数

  e1 | the e1
  e2 | the e2
  distanceX | the distance x
  distanceY | the distance y

返回
  true, if successful

参见
  android.view.GestureDetector.OnGestureListener::onScroll(android.view.MotionEvent, android.view.MotionEvent, float, float)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.onShowPress | ( | MotionEvent | e | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  e | the e

参见
  android.view.GestureDetector.OnGestureListener::onShowPress(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

boolean com.ab.view.carousel.CarouselView.onSingleTapUp | ( | MotionEvent | e | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  e | the e

返回
  true, if successful

参见
  android.view.GestureDetector.OnGestureListener::onSingleTapUp(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

boolean com.ab.view.carousel.CarouselView.onTouchEvent | ( | MotionEvent | event | ) |
| inline

Implemented to handle touch screen motion events.

参数

  event | the event

返回
  true, if successful

void com.ab.view.carousel.CarouselView.onUp | ( |  | ) |
| inline package

On up.

void com.ab.view.carousel.CarouselView.scrollIntoSlots | ( |  | ) |
| inline private

Brings an item with nearest to 0 degrees angle to this angle and sets it selected.

void com.ab.view.carousel.CarouselView.scrollToChild | ( | int | i | ) |
| inline package

Scroll to child.

参数

  i | the i

void com.ab.view.carousel.CarouselView.selectionChanged | ( |  | ) |
| inline package

描述：TODO.

版本
  v1.0

参见
  com.ab.view.carousel.CarouselAdapter::selectionChanged()

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.setAnimationDuration | ( | int | animationDurationMillis | ) |
| inline

Sets how long the transition animation should run when a child view changes position. Only relevant if animation is turned on.

参数

  animationDurationMillis | The duration of the transition, in milliseconds.

ref android.R.styleable::Gallery_animationDuration

void com.ab.view.carousel.CarouselView.setCallbackDuringFling | ( | boolean | shouldCallback | ) |
| inline

Whether or not to callback on any getOnItemSelectedListener() while the items are being flinged. If false, only the final selected item will cause the callback. If true, all items between the first and the final will cause callbacks.

参数

  shouldCallback | Whether or not to callback on the listener while the items are being flinged.

void com.ab.view.carousel.CarouselView.setCallbackOnUnselectedItemClick | ( | boolean | shouldCallback | ) |
| inline

Whether or not to callback when an item that is not selected is clicked. If false, the item will become selected (and re-centered). If true, the

参数

  shouldCallback | Whether or not to callback on the listener when a item that is not selected is clicked. getOnItemClickListener() will get the callback.

void com.ab.view.carousel.CarouselView.setGravity | ( | int | gravity | ) |
| inline

Sets the gravity.

参数

  gravity | the new gravity

void com.ab.view.carousel.CarouselView.setSelectedPositionInt | ( | int | position | ) |
| inline package

描述：TODO.

版本
  v1.0

参数

  position | the new selected position int

参见
  com.ab.view.carousel.CarouselAdapter::setSelectedPositionInt(int)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.setUpChild | ( | CarouselItemView | child,
|  | int | index,
|  | float | angleOffset
| ) |  |
| inline private

Helper for makeAndAddView to set the position of a view and fill out its layout paramters.

参数

  child | The view to position
  index | the index
  angleOffset | the angle offset

boolean com.ab.view.carousel.CarouselView.showContextMenu | ( |  | ) |
| inline

Bring up the context menu for this view.

返回
  true, if successful

boolean com.ab.view.carousel.CarouselView.showContextMenuForChild | ( | View | originalView | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  originalView | the original view

返回
  true, if successful

参见
  android.view.ViewGroup::showContextMenuForChild(android.view.View)

作者
  : amsoft.cn

日期
  ：2013-11-28 上午11:14:35

void com.ab.view.carousel.CarouselView.trackMotionScroll | ( | float | deltaAngle | ) |
| inline package

Tracks a motion scroll. In reality, this is used to do just about any movement to items (touch scroll, arrow-key scroll, set an item as selected).

参数

  deltaAngle | Change in X from the previous event.

void com.ab.view.carousel.CarouselView.updateSelectedItemMetadata | ( |  | ) |
| inline private

Update selected item metadata.

## 类成员变量说明

final boolean com.ab.view.carousel.CarouselView.localLOGV = false
| static private

If logging should be inside class.

int com.ab.view.carousel.CarouselView.mAnimationDuration = 900
| private

How long the transition animation should run when a child view changes position, measured in milliseconds.

final int com.ab.view.carousel.CarouselView.MAX_QUANTITY = 12
| static private

Default max quantity of images.

final float com.ab.view.carousel.CarouselView.MAX_THETA = 15.0f
| static private

Max theta.

Camera com.ab.view.carousel.CarouselView.mCamera = new Camera()
| private

Camera to make 3D rotation.

AdapterContextMenuInfo com.ab.view.carousel.CarouselView.mContextMenuInfo
| private

The info for adapter context menu.

Runnable com.ab.view.carousel.CarouselView.mDisableSuppressSelectionChangedRunnable
| private

初始值:
= new Runnable() {
public void run() {
mSuppressSelectionChanged = false;
selectionChanged();
}
}

Sets mSuppressSelectionChanged = false. This is used to set it to false in the future. It will also trigger a selection changed.

int com.ab.view.carousel.CarouselView.mDownTouchPosition
| private

The position of the item that received the user's down touch.

View com.ab.view.carousel.CarouselView.mDownTouchView
| private

The view of the item that received the user's down touch.

FlingRotateRunnable com.ab.view.carousel.CarouselView.mFlingRunnable = new FlingRotateRunnable()
| private

Executes the delta rotations from a fling or scroll movement.

GestureDetector com.ab.view.carousel.CarouselView.mGestureDetector
| private

Helper for detecting touch gestures.

int com.ab.view.carousel.CarouselView.mGravity
| private

Gravity for the widget.

final int com.ab.view.carousel.CarouselView.MIN_QUANTITY = 3
| static private

Default min quantity of images.

boolean com.ab.view.carousel.CarouselView.mIsFirstScroll
| private

If true, this onScroll is the first for this user's drag (remember, a drag sends many onScrolls).

int com.ab.view.carousel.CarouselView.mMaxQuantity = MAX_QUANTITY
| private

Set max qantity of images.

int com.ab.view.carousel.CarouselView.mMinQuantity = MIN_QUANTITY
| private

Set min quantity of images.

boolean com.ab.view.carousel.CarouselView.mReceivedInvokeKeyDown
| private

If true, we have received the "invoke" (center or enter buttons) key down. This is checked before we action on the "invoke" key up, and is subsequently cleared.

View com.ab.view.carousel.CarouselView.mSelectedChild
| private

The currently selected item's child.

boolean com.ab.view.carousel.CarouselView.mShouldCallbackDuringFling = true
| private

Whether to continuously callback on the item selected listener during a fling.

boolean com.ab.view.carousel.CarouselView.mShouldCallbackOnUnselectedItemClick = true
| private

Whether to callback when an item that is not selected is clicked.

boolean com.ab.view.carousel.CarouselView.mShouldStopFling
| private

When fling runnable runs, it resets this to false. Any method along the path until the end of its run() can set this to true to abort any remaining fling. For example, if we've reached either the leftmost or rightmost item, we will set this to true.

boolean com.ab.view.carousel.CarouselView.mSuppressSelectionChanged
| private

If true, do not callback to item selected listener.

float com.ab.view.carousel.CarouselView.mTheta = (float)(15.0f*(Math.PI/180.0))
| private

The axe angle.

boolean com.ab.view.carousel.CarouselView.mUseReflection
| private

If items should be reflected.

final int com.ab.view.carousel.CarouselView.SCROLL_TO_FLING_UNCERTAINTY_TIMEOUT = 250
| static private

Duration in milliseconds from the start of a scroll during which we're unsure whether the user is scrolling or flinging.

final String com.ab.view.carousel.CarouselView.TAG = CarouselView.class.getSimpleName()
| static private

Tag for a class logging.

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

- src/com/ab/view/carousel/CarouselView.java