android.widget
Class Gallery
java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.AdapterView<SpinnerAdapter>
android.widget.AbsSpinner
android.widget.Gallery
- All Implemented Interfaces:
- Drawable.Callback, AccessibilityEventSource, GestureDetector.OnGestureListener, KeyEvent.Callback, ViewManager, ViewParent
public class Gallery
- extends AbsSpinner
- implements GestureDetector.OnGestureListener
| Fields inherited from class android.view.View |
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, NO_ID, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET |
|
Method Summary |
protected boolean |
checkLayoutParams(ViewGroup.LayoutParams p)
|
protected int |
computeHorizontalScrollExtent()
|
protected int |
computeHorizontalScrollOffset()
|
protected int |
computeHorizontalScrollRange()
|
boolean |
dispatchKeyEvent(KeyEvent event)
|
protected void |
dispatchSetPressed(boolean pressed)
|
void |
dispatchSetSelected(boolean selected)
|
protected ViewGroup.LayoutParams |
generateDefaultLayoutParams()
|
ViewGroup.LayoutParams |
generateLayoutParams(AttributeSet attrs)
|
protected ViewGroup.LayoutParams |
generateLayoutParams(ViewGroup.LayoutParams p)
|
protected int |
getChildDrawingOrder(int childCount,
int i)
|
protected boolean |
getChildStaticTransformation(View child,
Transformation t)
|
protected ContextMenu.ContextMenuInfo |
getContextMenuInfo()
|
boolean |
onDown(MotionEvent e)
|
boolean |
onFling(MotionEvent e1,
MotionEvent e2,
float velocityX,
float velocityY)
|
protected void |
onFocusChanged(boolean gainFocus,
int direction,
Rect previouslyFocusedRect)
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
|
boolean |
onKeyUp(int keyCode,
KeyEvent event)
|
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b)
|
void |
onLongPress(MotionEvent e)
|
boolean |
onScroll(MotionEvent e1,
MotionEvent e2,
float distanceX,
float distanceY)
|
void |
onShowPress(MotionEvent e)
|
boolean |
onSingleTapUp(MotionEvent e)
|
boolean |
onTouchEvent(MotionEvent event)
|
void |
setAnimationDuration(int animationDurationMillis)
|
void |
setCallbackDuringFling(boolean shouldCallback)
|
void |
setGravity(int gravity)
|
void |
setSpacing(int spacing)
|
void |
setUnselectedAlpha(float unselectedAlpha)
|
boolean |
showContextMenu()
|
boolean |
showContextMenuForChild(View originalView)
|
| Methods inherited from class android.widget.AbsSpinner |
getAdapter, getCount, getSelectedView, onMeasure, onRestoreInstanceState, onSaveInstanceState, pointToPosition, requestLayout, setAdapter, setSelection, setSelection |
| Methods inherited from class android.widget.AdapterView |
addView, addView, addView, addView, canAnimate, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, getEmptyView, getFirstVisiblePosition, getItemAtPosition, getItemIdAtPosition, getLastVisiblePosition, getOnItemClickListener, getOnItemLongClickListener, getOnItemSelectedListener, getPositionForView, getSelectedItem, getSelectedItemId, getSelectedItemPosition, performItemClick, removeAllViews, removeView, removeViewAt, setEmptyView, setFocusable, setFocusableInTouchMode, setOnClickListener, setOnItemClickListener, setOnItemLongClickListener, setOnItemSelectedListener |
| Methods inherited from class android.view.ViewGroup |
addFocusables, addFocusables, addStatesFromChildren, addTouchables, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchDraw, dispatchFreezeSelfOnly, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, findFocus, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, onInterceptTouchEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViewsInLayout, removeDetachedView, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, startLayoutAnimation, updateViewLayout |
| Methods inherited from class android.view.View |
awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, cancelLongPress, checkInputConnectionProxy, clearAnimation, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createContextMenu, destroyDrawingCache, draw, finalize, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getKeyDispatcherState, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onCheckIsTextEditor, onCreateContextMenu, onCreateInputConnection, onDetachedFromWindow, onDraw, onDrawScrollBars, onFinishInflate, onFinishTemporaryDetach, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTrackballEvent, onWindowFocusChanged, onWindowVisibilityChanged, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLayoutParams, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPressed, setSaveEnabled, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setSelected, setSoundEffectsEnabled, setTag, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, startAnimation, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Gallery
public Gallery(Context context)
Gallery
public Gallery(Context context,
AttributeSet attrs)
Gallery
public Gallery(Context context,
AttributeSet attrs,
int defStyle)
setCallbackDuringFling
public void setCallbackDuringFling(boolean shouldCallback)
setAnimationDuration
public void setAnimationDuration(int animationDurationMillis)
setSpacing
public void setSpacing(int spacing)
setUnselectedAlpha
public void setUnselectedAlpha(float unselectedAlpha)
getChildStaticTransformation
protected boolean getChildStaticTransformation(View child,
Transformation t)
- Overrides:
getChildStaticTransformation in class ViewGroup
computeHorizontalScrollExtent
protected int computeHorizontalScrollExtent()
- Overrides:
computeHorizontalScrollExtent in class View
computeHorizontalScrollOffset
protected int computeHorizontalScrollOffset()
- Overrides:
computeHorizontalScrollOffset in class View
computeHorizontalScrollRange
protected int computeHorizontalScrollRange()
- Overrides:
computeHorizontalScrollRange in class View
checkLayoutParams
protected boolean checkLayoutParams(ViewGroup.LayoutParams p)
- Overrides:
checkLayoutParams in class ViewGroup
generateLayoutParams
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
- Overrides:
generateLayoutParams in class ViewGroup
generateLayoutParams
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
- Overrides:
generateLayoutParams in class ViewGroup
generateDefaultLayoutParams
protected ViewGroup.LayoutParams generateDefaultLayoutParams()
- Overrides:
generateDefaultLayoutParams in class AbsSpinner
onLayout
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
- Overrides:
onLayout in class AdapterView<SpinnerAdapter>
onTouchEvent
public boolean onTouchEvent(MotionEvent event)
- Overrides:
onTouchEvent in class View
onSingleTapUp
public boolean onSingleTapUp(MotionEvent e)
- Specified by:
onSingleTapUp in interface GestureDetector.OnGestureListener
onFling
public boolean onFling(MotionEvent e1,
MotionEvent e2,
float velocityX,
float velocityY)
- Specified by:
onFling in interface GestureDetector.OnGestureListener
onScroll
public boolean onScroll(MotionEvent e1,
MotionEvent e2,
float distanceX,
float distanceY)
- Specified by:
onScroll in interface GestureDetector.OnGestureListener
onDown
public boolean onDown(MotionEvent e)
- Specified by:
onDown in interface GestureDetector.OnGestureListener
onLongPress
public void onLongPress(MotionEvent e)
- Specified by:
onLongPress in interface GestureDetector.OnGestureListener
onShowPress
public void onShowPress(MotionEvent e)
- Specified by:
onShowPress in interface GestureDetector.OnGestureListener
dispatchSetSelected
public void dispatchSetSelected(boolean selected)
- Overrides:
dispatchSetSelected in class ViewGroup
dispatchSetPressed
protected void dispatchSetPressed(boolean pressed)
- Overrides:
dispatchSetPressed in class ViewGroup
getContextMenuInfo
protected ContextMenu.ContextMenuInfo getContextMenuInfo()
- Overrides:
getContextMenuInfo in class View
showContextMenuForChild
public boolean showContextMenuForChild(View originalView)
- Specified by:
showContextMenuForChild in interface ViewParent- Overrides:
showContextMenuForChild in class ViewGroup
showContextMenu
public boolean showContextMenu()
- Overrides:
showContextMenu in class View
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent event)
- Overrides:
dispatchKeyEvent in class ViewGroup
onKeyDown
public boolean onKeyDown(int keyCode,
KeyEvent event)
- Specified by:
onKeyDown in interface KeyEvent.Callback- Overrides:
onKeyDown in class View
onKeyUp
public boolean onKeyUp(int keyCode,
KeyEvent event)
- Specified by:
onKeyUp in interface KeyEvent.Callback- Overrides:
onKeyUp in class View
setGravity
public void setGravity(int gravity)
getChildDrawingOrder
protected int getChildDrawingOrder(int childCount,
int i)
- Overrides:
getChildDrawingOrder in class ViewGroup
onFocusChanged
protected void onFocusChanged(boolean gainFocus,
int direction,
Rect previouslyFocusedRect)
- Overrides:
onFocusChanged in class View
Copyright © 2008-2010. All Rights Reserved.