类 | |
| 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) |
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 成员函数 | |
| 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 | 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 | initCarouselSpinner () |
Private 属性 | |
| DataSetObserver | mDataSetObserver |
额外继承的成员函数 | |
静态 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.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 |
The Class CarouselSpinner.
|
inline |
Instantiates a new carousel spinner.
| context | the context |
|
inline |
Instantiates a new carousel spinner.
| context | the context |
| attrs | the attrs |
|
inline |
Instantiates a new carousel spinner.
| context | the context |
| attrs | the attrs |
| defStyle | the def style |
|
inlineprotected |
描述:TODO.
|
inline |
描述:TODO.
|
inlinepackage |
Gets the child height.
| child | the child |
|
inlinepackage |
Gets the child width.
| child | the child |
|
inline |
描述:TODO.
|
inline |
描述:TODO.
|
inlineprivate |
Common code for different constructor flavors.
|
abstractpackage |
Layout.
| delta | the delta |
| animate | the animate |
|
inlineprotected |
On measure.
| widthMeasureSpec | the width measure spec |
| heightMeasureSpec | the height measure spec |
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.
|
inline |
描述:TODO.
| state | the state |
|
inline |
描述:TODO.
|
inline |
Maps a point to a position in the list.
| x | X in local coordinate |
| y | Y in local coordinate |
|
inline |
Maps a point to a position in the list.
| x | X in local coordinate |
| y | Y in local coordinate |
|
inlinepackage |
Recycle all views.
|
inline |
Override to prevent spamming ourselves with layout requests as we place views.
|
inlinepackage |
Clear out all children from the list.
|
inline |
描述:TODO.
| adapter | the new adapter |
|
inline |
Jump directly to a specific item in the adapter data.
| position | the position |
| animate | the animate |
|
inline |
描述:TODO.
| position | the new selection |
|
inlinepackage |
Makes the item at the supplied position selected.
| position | Position to select |
| animate | Should the transition be animated |
|
package |
The m adapter.
|
package |
The m block layout requests.
|
private |
The m data set observer.
|
package |
The m height measure spec.
|
package |
The m recycler.
|
package |
The m selection bottom padding.
|
package |
The m selection left padding.
|
package |
The m selection right padding.
|
package |
The m selection top padding.
|
package |
The m spinner padding.
|
package |
The m width measure spec.
1.8.8