public class StickyListHeadersListView
extends android.widget.FrameLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
StickyListHeadersListView.OnHeaderClickListener |
static interface |
StickyListHeadersListView.OnStickyHeaderChangedListener
Notifies the listener when the sticky header has been updated
|
static interface |
StickyListHeadersListView.OnStickyHeaderOffsetChangedListener
Notifies the listener when the sticky headers top offset has changed.
|
android.widget.FrameLayout.LayoutParamsandroid.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListenerCLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, 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, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, 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_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, 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_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| Constructor and Description |
|---|
StickyListHeadersListView(android.content.Context context) |
StickyListHeadersListView(android.content.Context context,
android.util.AttributeSet attrs) |
StickyListHeadersListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFooterView(android.view.View v) |
void |
addFooterView(android.view.View v,
java.lang.Object data,
boolean isSelectable) |
void |
addHeaderView(android.view.View v) |
void |
addHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable) |
boolean |
areHeadersSticky() |
boolean |
canScrollVertically(int direction) |
protected void |
dispatchDraw(android.graphics.Canvas canvas) |
StickyListHeadersAdapter |
getAdapter() |
boolean |
getAreHeadersSticky()
Deprecated.
|
int |
getCheckedItemCount() |
long[] |
getCheckedItemIds() |
int |
getCheckedItemPosition() |
android.util.SparseBooleanArray |
getCheckedItemPositions() |
int |
getCount() |
android.graphics.drawable.Drawable |
getDivider() |
int |
getDividerHeight() |
android.view.View |
getEmptyView() |
int |
getFirstVisiblePosition() |
int |
getFooterViewsCount() |
int |
getHeaderViewsCount() |
java.lang.Object |
getItemAtPosition(int position) |
long |
getItemIdAtPosition(int position) |
int |
getLastVisiblePosition() |
android.view.View |
getListChildAt(int index) |
int |
getListChildCount() |
int |
getOverScrollMode() |
int |
getPaddingBottom() |
int |
getPaddingLeft() |
int |
getPaddingRight() |
int |
getPaddingTop() |
int |
getPositionForView(android.view.View view) |
int |
getScrollBarStyle() |
int |
getStickyHeaderTopOffset() |
android.widget.ListView |
getWrappedList()
Use the method with extreme caution!! Changing any values on the
underlying ListView might break everything.
|
void |
invalidateViews() |
boolean |
isDrawingListUnderStickyHeader() |
boolean |
isFastScrollAlwaysVisible() |
boolean |
isHorizontalScrollBarEnabled() |
boolean |
isVerticalScrollBarEnabled() |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
void |
onRestoreInstanceState(android.os.Parcelable state) |
android.os.Parcelable |
onSaveInstanceState() |
protected void |
recomputePadding() |
void |
removeFooterView(android.view.View v) |
void |
removeHeaderView(android.view.View v) |
void |
setAdapter(StickyListHeadersAdapter adapter) |
void |
setAreHeadersSticky(boolean areHeadersSticky) |
void |
setChoiceMode(int choiceMode) |
void |
setClipToPadding(boolean clipToPadding) |
void |
setDivider(android.graphics.drawable.Drawable divider) |
void |
setDividerHeight(int dividerHeight) |
void |
setDrawingListUnderStickyHeader(boolean drawingListUnderStickyHeader) |
void |
setEmptyView(android.view.View v) |
void |
setFastScrollAlwaysVisible(boolean alwaysVisible) |
void |
setFastScrollEnabled(boolean fastScrollEnabled) |
void |
setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled) |
void |
setItemChecked(int position,
boolean value) |
void |
setMultiChoiceModeListener(android.widget.AbsListView.MultiChoiceModeListener listener) |
void |
setOnCreateContextMenuListener(android.view.View.OnCreateContextMenuListener l) |
void |
setOnHeaderClickListener(StickyListHeadersListView.OnHeaderClickListener listener) |
void |
setOnItemClickListener(android.widget.AdapterView.OnItemClickListener listener) |
void |
setOnItemLongClickListener(android.widget.AdapterView.OnItemLongClickListener listener) |
void |
setOnScrollListener(android.widget.AbsListView.OnScrollListener onScrollListener) |
void |
setOnStickyHeaderChangedListener(StickyListHeadersListView.OnStickyHeaderChangedListener listener) |
void |
setOnStickyHeaderOffsetChangedListener(StickyListHeadersListView.OnStickyHeaderOffsetChangedListener listener) |
void |
setOnTouchListener(android.view.View.OnTouchListener l) |
void |
setOverScrollMode(int mode) |
void |
setPadding(int left,
int top,
int right,
int bottom) |
void |
setScrollBarStyle(int style) |
void |
setSelection(int position) |
void |
setSelectionAfterHeaderView() |
void |
setSelectionFromTop(int position,
int y) |
void |
setSelector(android.graphics.drawable.Drawable sel) |
void |
setSelector(int resID) |
void |
setStickyHeaderTopOffset(int stickyHeaderTopOffset) |
void |
setTranscriptMode(int mode) |
void |
setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled) |
boolean |
showContextMenu() |
void |
smoothScrollBy(int distance,
int duration) |
void |
smoothScrollByOffset(int offset) |
void |
smoothScrollToPosition(int position) |
void |
smoothScrollToPosition(int position,
int boundPosition) |
void |
smoothScrollToPositionFromTop(int position,
int offset) |
void |
smoothScrollToPositionFromTop(int position,
int offset,
int duration) |
checkLayoutParams, draw, drawableStateChanged, gatherTransparentRegion, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getConsiderGoneChildrenWhenMeasuring, getForeground, getForegroundGravity, getMeasureAllChildren, jumpDrawablesToCurrentState, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onSizeChanged, setForeground, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState, verifyDrawableaddChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawChild, endViewTransition, findFocus, findViewsWithText, fitSystemWindows, focusableViewAvailable, focusSearch, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getOverlay, getPersistentDrawingCache, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onAttachedToWindow, onCreateDrawableState, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayoutaddFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingEnd, getPaddingStart, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onRtlPropertiesChanged, onScreenStateChanged, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayoutpublic StickyListHeadersListView(android.content.Context context)
public StickyListHeadersListView(android.content.Context context,
android.util.AttributeSet attrs)
public StickyListHeadersListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
onMeasure in class android.widget.FrameLayoutprotected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
onLayout in class android.widget.FrameLayoutprotected void dispatchDraw(android.graphics.Canvas canvas)
dispatchDraw in class android.view.ViewGrouppublic void setAreHeadersSticky(boolean areHeadersSticky)
public boolean areHeadersSticky()
@Deprecated public boolean getAreHeadersSticky()
public void setStickyHeaderTopOffset(int stickyHeaderTopOffset)
stickyHeaderTopOffset - The offset of the sticky header fom the top of the viewpublic int getStickyHeaderTopOffset()
public void setDrawingListUnderStickyHeader(boolean drawingListUnderStickyHeader)
public boolean isDrawingListUnderStickyHeader()
public void setOnHeaderClickListener(StickyListHeadersListView.OnHeaderClickListener listener)
public void setOnStickyHeaderOffsetChangedListener(StickyListHeadersListView.OnStickyHeaderOffsetChangedListener listener)
public void setOnStickyHeaderChangedListener(StickyListHeadersListView.OnStickyHeaderChangedListener listener)
public android.view.View getListChildAt(int index)
public int getListChildCount()
public android.widget.ListView getWrappedList()
public void setAdapter(StickyListHeadersAdapter adapter)
public StickyListHeadersAdapter getAdapter()
public void setDivider(android.graphics.drawable.Drawable divider)
public void setDividerHeight(int dividerHeight)
public android.graphics.drawable.Drawable getDivider()
public int getDividerHeight()
public void setOnScrollListener(android.widget.AbsListView.OnScrollListener onScrollListener)
public void setOnTouchListener(android.view.View.OnTouchListener l)
setOnTouchListener in class android.view.Viewpublic void setOnItemClickListener(android.widget.AdapterView.OnItemClickListener listener)
public void setOnItemLongClickListener(android.widget.AdapterView.OnItemLongClickListener listener)
public void addHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
public void addHeaderView(android.view.View v)
public void removeHeaderView(android.view.View v)
public int getHeaderViewsCount()
public void addFooterView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
public void addFooterView(android.view.View v)
public void removeFooterView(android.view.View v)
public int getFooterViewsCount()
public void setEmptyView(android.view.View v)
public android.view.View getEmptyView()
public boolean isVerticalScrollBarEnabled()
isVerticalScrollBarEnabled in class android.view.Viewpublic boolean isHorizontalScrollBarEnabled()
isHorizontalScrollBarEnabled in class android.view.Viewpublic void setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled)
setVerticalScrollBarEnabled in class android.view.Viewpublic void setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled)
setHorizontalScrollBarEnabled in class android.view.Viewpublic int getOverScrollMode()
getOverScrollMode in class android.view.Viewpublic void setOverScrollMode(int mode)
setOverScrollMode in class android.view.Viewpublic void smoothScrollBy(int distance,
int duration)
public void smoothScrollByOffset(int offset)
public void smoothScrollToPosition(int position)
public void smoothScrollToPosition(int position,
int boundPosition)
public void smoothScrollToPositionFromTop(int position,
int offset)
public void smoothScrollToPositionFromTop(int position,
int offset,
int duration)
public void setSelection(int position)
public void setSelectionAfterHeaderView()
public void setSelectionFromTop(int position,
int y)
public void setSelector(android.graphics.drawable.Drawable sel)
public void setSelector(int resID)
public int getFirstVisiblePosition()
public int getLastVisiblePosition()
public void setChoiceMode(int choiceMode)
public void setItemChecked(int position,
boolean value)
public int getCheckedItemCount()
public long[] getCheckedItemIds()
public int getCheckedItemPosition()
public android.util.SparseBooleanArray getCheckedItemPositions()
public int getCount()
public java.lang.Object getItemAtPosition(int position)
public long getItemIdAtPosition(int position)
public void setOnCreateContextMenuListener(android.view.View.OnCreateContextMenuListener l)
setOnCreateContextMenuListener in class android.view.Viewpublic boolean showContextMenu()
showContextMenu in class android.view.Viewpublic void invalidateViews()
public void setClipToPadding(boolean clipToPadding)
setClipToPadding in class android.view.ViewGrouppublic void setPadding(int left,
int top,
int right,
int bottom)
setPadding in class android.view.Viewprotected void recomputePadding()
public int getPaddingLeft()
getPaddingLeft in class android.view.Viewpublic int getPaddingTop()
getPaddingTop in class android.view.Viewpublic int getPaddingRight()
getPaddingRight in class android.view.Viewpublic int getPaddingBottom()
getPaddingBottom in class android.view.Viewpublic void setFastScrollEnabled(boolean fastScrollEnabled)
public void setFastScrollAlwaysVisible(boolean alwaysVisible)
public boolean isFastScrollAlwaysVisible()
AbsListView.isFastScrollAlwaysVisible()public void setScrollBarStyle(int style)
setScrollBarStyle in class android.view.Viewpublic int getScrollBarStyle()
getScrollBarStyle in class android.view.Viewpublic int getPositionForView(android.view.View view)
public void setMultiChoiceModeListener(android.widget.AbsListView.MultiChoiceModeListener listener)
public android.os.Parcelable onSaveInstanceState()
onSaveInstanceState in class android.view.Viewpublic void onRestoreInstanceState(android.os.Parcelable state)
onRestoreInstanceState in class android.view.Viewpublic boolean canScrollVertically(int direction)
canScrollVertically in class android.view.Viewpublic void setTranscriptMode(int mode)