android.widget
Class AbsListView
java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.AdapterView<ListAdapter>
android.widget.AbsListView
- All Implemented Interfaces:
- Drawable.Callback, NoCopySpan, TextWatcher, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent, ViewTreeObserver.OnGlobalLayoutListener, ViewTreeObserver.OnTouchModeChangeListener, Filter.FilterListener
- Direct Known Subclasses:
- GridView, ListView
public abstract class AbsListView
- extends AdapterView<ListAdapter>
- implements TextWatcher, ViewTreeObserver.OnGlobalLayoutListener, Filter.FilterListener, ViewTreeObserver.OnTouchModeChangeListener
Nested classes/interfaces inherited from class android.view.View |
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnAttachStateChangeListener, View.OnClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener |
Fields inherited from class android.view.View |
ALPHA, 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, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, 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, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, 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, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y |
Method Summary |
void |
addTouchables(ArrayList<View> views)
|
void |
afterTextChanged(Editable s)
|
void |
beforeTextChanged(CharSequence s,
int start,
int count,
int after)
|
boolean |
checkInputConnectionProxy(View view)
|
protected boolean |
checkLayoutParams(ViewGroup.LayoutParams p)
|
void |
clearChoices()
|
void |
clearTextFilter()
|
protected int |
computeVerticalScrollExtent()
|
protected int |
computeVerticalScrollOffset()
|
protected int |
computeVerticalScrollRange()
|
void |
deferNotifyDataSetChanged()
|
protected void |
dispatchDraw(Canvas canvas)
|
protected void |
dispatchSetPressed(boolean pressed)
|
void |
draw(Canvas canvas)
|
protected void |
drawableStateChanged()
|
AbsListView.LayoutParams |
generateLayoutParams(AttributeSet attrs)
|
protected ViewGroup.LayoutParams |
generateLayoutParams(ViewGroup.LayoutParams p)
|
protected float |
getBottomFadingEdgeStrength()
|
protected int |
getBottomPaddingOffset()
|
int |
getCacheColorHint()
|
int |
getCheckedItemCount()
|
long[] |
getCheckedItemIds()
|
int |
getCheckedItemPosition()
|
SparseBooleanArray |
getCheckedItemPositions()
|
int |
getChoiceMode()
|
protected ContextMenu.ContextMenuInfo |
getContextMenuInfo()
|
void |
getFocusedRect(Rect r)
|
protected int |
getLeftPaddingOffset()
|
int |
getListPaddingBottom()
|
int |
getListPaddingLeft()
|
int |
getListPaddingRight()
|
int |
getListPaddingTop()
|
protected int |
getRightPaddingOffset()
|
View |
getSelectedView()
|
Drawable |
getSelector()
|
int |
getSolidColor()
|
CharSequence |
getTextFilter()
|
protected float |
getTopFadingEdgeStrength()
|
protected int |
getTopPaddingOffset()
|
int |
getTranscriptMode()
|
int |
getVerticalScrollbarWidth()
|
protected void |
handleDataChanged()
|
boolean |
hasTextFilter()
|
void |
invalidateViews()
|
boolean |
isFastScrollAlwaysVisible()
|
boolean |
isFastScrollEnabled()
|
protected boolean |
isInFilterMode()
|
boolean |
isItemChecked(int position)
|
protected boolean |
isPaddingOffsetRequired()
|
boolean |
isScrollingCacheEnabled()
|
boolean |
isSmoothScrollbarEnabled()
|
boolean |
isStackFromBottom()
|
boolean |
isTextFilterEnabled()
|
void |
jumpDrawablesToCurrentState()
|
protected void |
layoutChildren()
|
protected void |
onAttachedToWindow()
|
protected int[] |
onCreateDrawableState(int extraSpace)
|
InputConnection |
onCreateInputConnection(EditorInfo outAttrs)
|
protected void |
onDetachedFromWindow()
|
protected void |
onDisplayHint(int hint)
|
void |
onFilterComplete(int count)
|
protected void |
onFocusChanged(boolean gainFocus,
int direction,
Rect previouslyFocusedRect)
|
boolean |
onGenericMotionEvent(MotionEvent event)
|
void |
onGlobalLayout()
|
boolean |
onInterceptTouchEvent(MotionEvent ev)
|
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)
|
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
|
protected void |
onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
|
boolean |
onRemoteAdapterConnected()
|
void |
onRemoteAdapterDisconnected()
|
void |
onRestoreInstanceState(Parcelable state)
|
Parcelable |
onSaveInstanceState()
|
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh)
|
void |
onTextChanged(CharSequence s,
int start,
int before,
int count)
|
boolean |
onTouchEvent(MotionEvent ev)
|
void |
onTouchModeChanged(boolean isInTouchMode)
|
void |
onWindowFocusChanged(boolean hasWindowFocus)
|
boolean |
performItemClick(View view,
int position,
long id)
|
int |
pointToPosition(int x,
int y)
|
long |
pointToRowId(int x,
int y)
|
void |
reclaimViews(List<View> views)
|
void |
requestDisallowInterceptTouchEvent(boolean disallowIntercept)
|
void |
requestLayout()
|
void |
sendAccessibilityEvent(int eventType)
|
void |
setAdapter(ListAdapter adapter)
|
void |
setCacheColorHint(int color)
|
void |
setChoiceMode(int choiceMode)
|
void |
setDrawSelectorOnTop(boolean onTop)
|
void |
setFastScrollAlwaysVisible(boolean alwaysShow)
|
void |
setFastScrollEnabled(boolean enabled)
|
void |
setFilterText(String filterText)
|
void |
setFriction(float friction)
|
void |
setItemChecked(int position,
boolean value)
|
void |
setMultiChoiceModeListener(AbsListView.MultiChoiceModeListener listener)
|
void |
setOnScrollListener(AbsListView.OnScrollListener l)
|
void |
setOverScrollMode(int mode)
|
void |
setRecyclerListener(AbsListView.RecyclerListener listener)
|
void |
setRemoteViewsAdapter(Intent intent)
|
void |
setScrollIndicators(View up,
View down)
|
void |
setScrollingCacheEnabled(boolean enabled)
|
void |
setSelector(Drawable sel)
|
void |
setSelector(int resID)
|
void |
setSmoothScrollbarEnabled(boolean enabled)
|
void |
setStackFromBottom(boolean stackFromBottom)
|
void |
setTextFilterEnabled(boolean textFilterEnabled)
|
void |
setTranscriptMode(int mode)
|
void |
setVelocityScale(float scale)
|
void |
setVerticalScrollbarPosition(int position)
|
boolean |
showContextMenuForChild(View originalView)
|
void |
smoothScrollBy(int distance,
int duration)
|
void |
smoothScrollToPosition(int position)
|
void |
smoothScrollToPosition(int position,
int boundPosition)
|
void |
smoothScrollToPositionFromTop(int position,
int offset)
|
void |
smoothScrollToPositionFromTop(int position,
int offset,
int duration)
|
boolean |
verifyDrawable(Drawable dr)
|
Methods inherited from class android.widget.AdapterView |
addView, addView, addView, addView, canAnimate, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, getAdapter, getCount, getEmptyView, getFirstVisiblePosition, getItemAtPosition, getItemIdAtPosition, getLastVisiblePosition, getOnItemClickListener, getOnItemLongClickListener, getOnItemSelectedListener, getPositionForView, getSelectedItem, getSelectedItemId, getSelectedItemPosition, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onRequestSendAccessibilityEvent, removeAllViews, removeView, removeViewAt, setEmptyView, setFocusable, setFocusableInTouchMode, setOnClickListener, setOnItemClickListener, setOnItemLongClickListener, setOnItemSelectedListener, setSelection |
Methods inherited from class android.view.ViewGroup |
addFocusables, addFocusables, addStatesFromChildren, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, drawChild, endViewTransition, findFocus, findViewsWithText, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateDefaultLayoutParams, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutTransition, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, layout, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onInterceptHoverEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViewsInLayout, removeDetachedView, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, resetResolvedLayoutDirection, resetResolvedTextDirection, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, shouldDelayChildPressedState, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout |
Methods inherited from class android.view.View |
addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, cancelLongPress, canScrollHorizontally, canScrollVertically, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, findViewById, findViewWithTag, fitsSystemWindows, focusSearch, forceLayout, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFocusables, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarStyle, getScrollX, getScrollY, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onHoverChanged, onHoverEvent, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onPopulateAccessibilityEvent, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTrackballEvent, onVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANSCRIPT_MODE_DISABLED
public static final int TRANSCRIPT_MODE_DISABLED
- See Also:
- Constant Field Values
TRANSCRIPT_MODE_NORMAL
public static final int TRANSCRIPT_MODE_NORMAL
- See Also:
- Constant Field Values
TRANSCRIPT_MODE_ALWAYS_SCROLL
public static final int TRANSCRIPT_MODE_ALWAYS_SCROLL
- See Also:
- Constant Field Values
CHOICE_MODE_NONE
public static final int CHOICE_MODE_NONE
- See Also:
- Constant Field Values
CHOICE_MODE_SINGLE
public static final int CHOICE_MODE_SINGLE
- See Also:
- Constant Field Values
CHOICE_MODE_MULTIPLE
public static final int CHOICE_MODE_MULTIPLE
- See Also:
- Constant Field Values
CHOICE_MODE_MULTIPLE_MODAL
public static final int CHOICE_MODE_MULTIPLE_MODAL
- See Also:
- Constant Field Values
AbsListView
public AbsListView(Context context)
AbsListView
public AbsListView(Context context,
AttributeSet attrs)
AbsListView
public AbsListView(Context context,
AttributeSet attrs,
int defStyle)
setOverScrollMode
public void setOverScrollMode(int mode)
- Overrides:
setOverScrollMode
in class View
setAdapter
public void setAdapter(ListAdapter adapter)
- Specified by:
setAdapter
in class AdapterView<ListAdapter>
getCheckedItemCount
public int getCheckedItemCount()
isItemChecked
public boolean isItemChecked(int position)
getCheckedItemPosition
public int getCheckedItemPosition()
getCheckedItemPositions
public SparseBooleanArray getCheckedItemPositions()
getCheckedItemIds
public long[] getCheckedItemIds()
clearChoices
public void clearChoices()
setItemChecked
public void setItemChecked(int position,
boolean value)
performItemClick
public boolean performItemClick(View view,
int position,
long id)
- Overrides:
performItemClick
in class AdapterView<ListAdapter>
getChoiceMode
public int getChoiceMode()
setChoiceMode
public void setChoiceMode(int choiceMode)
setMultiChoiceModeListener
public void setMultiChoiceModeListener(AbsListView.MultiChoiceModeListener listener)
setFastScrollEnabled
public void setFastScrollEnabled(boolean enabled)
setFastScrollAlwaysVisible
public void setFastScrollAlwaysVisible(boolean alwaysShow)
isFastScrollAlwaysVisible
public boolean isFastScrollAlwaysVisible()
getVerticalScrollbarWidth
public int getVerticalScrollbarWidth()
- Overrides:
getVerticalScrollbarWidth
in class View
isFastScrollEnabled
public boolean isFastScrollEnabled()
setVerticalScrollbarPosition
public void setVerticalScrollbarPosition(int position)
- Overrides:
setVerticalScrollbarPosition
in class View
setSmoothScrollbarEnabled
public void setSmoothScrollbarEnabled(boolean enabled)
isSmoothScrollbarEnabled
public boolean isSmoothScrollbarEnabled()
setOnScrollListener
public void setOnScrollListener(AbsListView.OnScrollListener l)
sendAccessibilityEvent
public void sendAccessibilityEvent(int eventType)
- Specified by:
sendAccessibilityEvent
in interface AccessibilityEventSource
- Overrides:
sendAccessibilityEvent
in class View
isScrollingCacheEnabled
public boolean isScrollingCacheEnabled()
setScrollingCacheEnabled
public void setScrollingCacheEnabled(boolean enabled)
setTextFilterEnabled
public void setTextFilterEnabled(boolean textFilterEnabled)
isTextFilterEnabled
public boolean isTextFilterEnabled()
getFocusedRect
public void getFocusedRect(Rect r)
- Overrides:
getFocusedRect
in class View
isStackFromBottom
public boolean isStackFromBottom()
setStackFromBottom
public void setStackFromBottom(boolean stackFromBottom)
onSaveInstanceState
public Parcelable onSaveInstanceState()
- Overrides:
onSaveInstanceState
in class View
onRestoreInstanceState
public void onRestoreInstanceState(Parcelable state)
- Overrides:
onRestoreInstanceState
in class View
setFilterText
public void setFilterText(String filterText)
getTextFilter
public CharSequence getTextFilter()
onFocusChanged
protected void onFocusChanged(boolean gainFocus,
int direction,
Rect previouslyFocusedRect)
- Overrides:
onFocusChanged
in class View
requestLayout
public void requestLayout()
- Specified by:
requestLayout
in interface ViewParent
- Overrides:
requestLayout
in class View
computeVerticalScrollExtent
protected int computeVerticalScrollExtent()
- Overrides:
computeVerticalScrollExtent
in class View
computeVerticalScrollOffset
protected int computeVerticalScrollOffset()
- Overrides:
computeVerticalScrollOffset
in class View
computeVerticalScrollRange
protected int computeVerticalScrollRange()
- Overrides:
computeVerticalScrollRange
in class View
getTopFadingEdgeStrength
protected float getTopFadingEdgeStrength()
- Overrides:
getTopFadingEdgeStrength
in class View
getBottomFadingEdgeStrength
protected float getBottomFadingEdgeStrength()
- Overrides:
getBottomFadingEdgeStrength
in class View
onMeasure
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
- Overrides:
onMeasure
in class View
onLayout
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
- Overrides:
onLayout
in class AdapterView<ListAdapter>
layoutChildren
protected void layoutChildren()
getSelectedView
public View getSelectedView()
- Specified by:
getSelectedView
in class AdapterView<ListAdapter>
getListPaddingTop
public int getListPaddingTop()
getListPaddingBottom
public int getListPaddingBottom()
getListPaddingLeft
public int getListPaddingLeft()
getListPaddingRight
public int getListPaddingRight()
dispatchDraw
protected void dispatchDraw(Canvas canvas)
- Overrides:
dispatchDraw
in class ViewGroup
isPaddingOffsetRequired
protected boolean isPaddingOffsetRequired()
- Overrides:
isPaddingOffsetRequired
in class View
getLeftPaddingOffset
protected int getLeftPaddingOffset()
- Overrides:
getLeftPaddingOffset
in class View
getTopPaddingOffset
protected int getTopPaddingOffset()
- Overrides:
getTopPaddingOffset
in class View
getRightPaddingOffset
protected int getRightPaddingOffset()
- Overrides:
getRightPaddingOffset
in class View
getBottomPaddingOffset
protected int getBottomPaddingOffset()
- Overrides:
getBottomPaddingOffset
in class View
onSizeChanged
protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
- Overrides:
onSizeChanged
in class View
setDrawSelectorOnTop
public void setDrawSelectorOnTop(boolean onTop)
setSelector
public void setSelector(int resID)
setSelector
public void setSelector(Drawable sel)
getSelector
public Drawable getSelector()
setScrollIndicators
public void setScrollIndicators(View up,
View down)
drawableStateChanged
protected void drawableStateChanged()
- Overrides:
drawableStateChanged
in class ViewGroup
onCreateDrawableState
protected int[] onCreateDrawableState(int extraSpace)
- Overrides:
onCreateDrawableState
in class ViewGroup
verifyDrawable
public boolean verifyDrawable(Drawable dr)
- Overrides:
verifyDrawable
in class View
jumpDrawablesToCurrentState
public void jumpDrawablesToCurrentState()
- Overrides:
jumpDrawablesToCurrentState
in class ViewGroup
onAttachedToWindow
protected void onAttachedToWindow()
- Overrides:
onAttachedToWindow
in class View
onDetachedFromWindow
protected void onDetachedFromWindow()
- Overrides:
onDetachedFromWindow
in class AdapterView<ListAdapter>
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasWindowFocus)
- Overrides:
onWindowFocusChanged
in class View
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
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
dispatchSetPressed
protected void dispatchSetPressed(boolean pressed)
- Overrides:
dispatchSetPressed
in class ViewGroup
pointToPosition
public int pointToPosition(int x,
int y)
pointToRowId
public long pointToRowId(int x,
int y)
onTouchModeChanged
public void onTouchModeChanged(boolean isInTouchMode)
- Specified by:
onTouchModeChanged
in interface ViewTreeObserver.OnTouchModeChangeListener
onTouchEvent
public boolean onTouchEvent(MotionEvent ev)
- Overrides:
onTouchEvent
in class View
onOverScrolled
protected void onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
- Overrides:
onOverScrolled
in class View
onGenericMotionEvent
public boolean onGenericMotionEvent(MotionEvent event)
- Overrides:
onGenericMotionEvent
in class View
draw
public void draw(Canvas canvas)
- Overrides:
draw
in class View
requestDisallowInterceptTouchEvent
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
- Specified by:
requestDisallowInterceptTouchEvent
in interface ViewParent
- Overrides:
requestDisallowInterceptTouchEvent
in class ViewGroup
onInterceptTouchEvent
public boolean onInterceptTouchEvent(MotionEvent ev)
- Overrides:
onInterceptTouchEvent
in class ViewGroup
addTouchables
public void addTouchables(ArrayList<View> views)
- Overrides:
addTouchables
in class ViewGroup
setFriction
public void setFriction(float friction)
setVelocityScale
public void setVelocityScale(float scale)
smoothScrollToPosition
public void smoothScrollToPosition(int position)
smoothScrollToPositionFromTop
public void smoothScrollToPositionFromTop(int position,
int offset,
int duration)
smoothScrollToPositionFromTop
public void smoothScrollToPositionFromTop(int position,
int offset)
smoothScrollToPosition
public void smoothScrollToPosition(int position,
int boundPosition)
smoothScrollBy
public void smoothScrollBy(int distance,
int duration)
invalidateViews
public void invalidateViews()
handleDataChanged
protected void handleDataChanged()
onDisplayHint
protected void onDisplayHint(int hint)
- Overrides:
onDisplayHint
in class View
isInFilterMode
protected boolean isInFilterMode()
onCreateInputConnection
public InputConnection onCreateInputConnection(EditorInfo outAttrs)
- Overrides:
onCreateInputConnection
in class View
checkInputConnectionProxy
public boolean checkInputConnectionProxy(View view)
- Overrides:
checkInputConnectionProxy
in class View
clearTextFilter
public void clearTextFilter()
hasTextFilter
public boolean hasTextFilter()
onGlobalLayout
public void onGlobalLayout()
- Specified by:
onGlobalLayout
in interface ViewTreeObserver.OnGlobalLayoutListener
beforeTextChanged
public void beforeTextChanged(CharSequence s,
int start,
int count,
int after)
- Specified by:
beforeTextChanged
in interface TextWatcher
onTextChanged
public void onTextChanged(CharSequence s,
int start,
int before,
int count)
- Specified by:
onTextChanged
in interface TextWatcher
afterTextChanged
public void afterTextChanged(Editable s)
- Specified by:
afterTextChanged
in interface TextWatcher
onFilterComplete
public void onFilterComplete(int count)
- Specified by:
onFilterComplete
in interface Filter.FilterListener
generateLayoutParams
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
- Overrides:
generateLayoutParams
in class ViewGroup
generateLayoutParams
public AbsListView.LayoutParams generateLayoutParams(AttributeSet attrs)
- Overrides:
generateLayoutParams
in class ViewGroup
checkLayoutParams
protected boolean checkLayoutParams(ViewGroup.LayoutParams p)
- Overrides:
checkLayoutParams
in class ViewGroup
setTranscriptMode
public void setTranscriptMode(int mode)
getTranscriptMode
public int getTranscriptMode()
getSolidColor
public int getSolidColor()
- Overrides:
getSolidColor
in class View
setCacheColorHint
public void setCacheColorHint(int color)
getCacheColorHint
public int getCacheColorHint()
reclaimViews
public void reclaimViews(List<View> views)
setRemoteViewsAdapter
public void setRemoteViewsAdapter(Intent intent)
deferNotifyDataSetChanged
public void deferNotifyDataSetChanged()
onRemoteAdapterConnected
public boolean onRemoteAdapterConnected()
onRemoteAdapterDisconnected
public void onRemoteAdapterDisconnected()
setRecyclerListener
public void setRecyclerListener(AbsListView.RecyclerListener listener)
Copyright © 2008-2012. All Rights Reserved.