net.simonvt.menudrawer
Class StaticDrawer

java.lang.Object
  extended by android.view.View
      extended by android.view.ViewGroup
          extended by net.simonvt.menudrawer.MenuDrawer
              extended by net.simonvt.menudrawer.StaticDrawer
All Implemented Interfaces:
android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent
Direct Known Subclasses:
BottomStaticDrawer, LeftStaticDrawer, RightStaticDrawer, TopStaticDrawer

public abstract class StaticDrawer
extends MenuDrawer


Nested Class Summary
 
Nested classes/interfaces inherited from class net.simonvt.menudrawer.MenuDrawer
MenuDrawer.OnDrawerStateChangeListener
 
Nested classes/interfaces inherited from class android.view.ViewGroup
android.view.ViewGroup.LayoutParams, android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
 
Nested classes/interfaces inherited from class android.view.View
android.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.OnTouchListener
 
Field Summary
protected  Position mPosition
           
 
Fields inherited from class net.simonvt.menudrawer.MenuDrawer
ANIMATION_DELAY, mActiveIndicator, mActivePosition, mActiveRect, mActiveView, mContentContainer, mDrawerState, mDropShadowDrawable, mDropShadowEnabled, mDropShadowSize, MENU_DRAG_CONTENT, MENU_DRAG_WINDOW, mHardwareLayersEnabled, mIndicatorAnimating, mIndicatorOffset, mIndicatorStartPos, mMenuContainer, mMenuOverlay, mMenuSize, mMenuSizeSet, mMenuVisible, mState, mTouchBezelSize, mTouchMode, mTouchSize, SMOOTH_INTERPOLATOR, STATE_CLOSED, STATE_CLOSING, STATE_DRAGGING, STATE_OPEN, STATE_OPENING, TOUCH_MODE_BEZEL, TOUCH_MODE_FULLSCREEN, TOUCH_MODE_NONE
 
Fields inherited from class android.view.ViewGroup
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
 
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, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_YES, 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, 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_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_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y
 
Constructor Summary
StaticDrawer(android.content.Context context)
           
StaticDrawer(android.content.Context context, android.util.AttributeSet attrs)
           
StaticDrawer(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
           
 
Method Summary
 void closeMenu(boolean animate)
          Closes the menu.
protected  void dispatchDraw(android.graphics.Canvas canvas)
           
protected abstract  void drawIndicator(android.graphics.Canvas canvas)
           
 boolean getOffsetMenuEnabled()
          Indicates whether the menu is being offset when dragging the drawer.
 int getTouchBezelSize()
          Returns the size of the touch bezel in px.
 int getTouchMode()
          Returns the touch mode.
 boolean isMenuVisible()
          Indicates whether the menu is currently visible.
protected  void onLayout(boolean changed, int l, int t, int r, int b)
           
protected  void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
           
 void openMenu(boolean animate)
          Opens the menu.
 void peekDrawer()
          Animates the drawer slightly open until the user opens the drawer.
 void peekDrawer(long delay)
          Animates the drawer slightly open.
 void peekDrawer(long startDelay, long delay)
          Animates the drawer slightly open.
 void setHardwareLayerEnabled(boolean enabled)
          Enables or disables the user of View.LAYER_TYPE_HARDWARE when animations views.
 void setMenuSize(int size)
          Set the size of the menu drawer when open.
 void setOffsetMenuEnabled(boolean offsetMenu)
          Enables or disables offsetting the menu when dragging the drawer.
 void setTouchBezelSize(int size)
          Sets the size of the touch bezel.
 void setTouchMode(int mode)
          Sets the drawer touch mode.
 void toggleMenu(boolean animate)
          Toggles the menu open and close.
 
Methods inherited from class net.simonvt.menudrawer.MenuDrawer
addView, attach, attach, attach, attach, attach, closeMenu, dpToPx, fitSystemWindows, getContentContainer, getDrawerState, getDropShadow, getIndicatorStartPos, getMenuContainer, getMenuView, initDrawer, logDrawerState, onRestoreInstanceState, onSaveInstanceState, openMenu, postOnAnimation, restoreState, saveState, setActiveView, setActiveView, setContentView, setContentView, setContentView, setDrawerState, setDropShadow, setDropShadow, setDropShadowColor, setDropShadowEnabled, setDropShadowSize, setMenuView, setMenuView, setMenuView, setOnDrawerStateChangeListener, toggleMenu
 
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, checkLayoutParams, childDrawableStateChanged, 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, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutTransition, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, 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, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, shouldDelayChildPressedState, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
 
Methods inherited from class android.view.View
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, draw, findViewById, findViewWithTag, focusSearch, forceLayout, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasTransientState, 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, isPaddingOffsetRequired, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.view.ViewParent
createContextMenu, getParent, getParentForAccessibility, isLayoutRequested, requestFitSystemWindows, requestLayout
 

Field Detail

mPosition

protected Position mPosition
Constructor Detail

StaticDrawer

public StaticDrawer(android.content.Context context)

StaticDrawer

public StaticDrawer(android.content.Context context,
                    android.util.AttributeSet attrs)

StaticDrawer

public StaticDrawer(android.content.Context context,
                    android.util.AttributeSet attrs,
                    int defStyle)
Method Detail

dispatchDraw

protected void dispatchDraw(android.graphics.Canvas canvas)
Overrides:
dispatchDraw in class android.view.ViewGroup

drawIndicator

protected abstract void drawIndicator(android.graphics.Canvas canvas)

onLayout

protected void onLayout(boolean changed,
                        int l,
                        int t,
                        int r,
                        int b)
Specified by:
onLayout in class android.view.ViewGroup

onMeasure

protected void onMeasure(int widthMeasureSpec,
                         int heightMeasureSpec)
Overrides:
onMeasure in class android.view.View

toggleMenu

public void toggleMenu(boolean animate)
Description copied from class: MenuDrawer
Toggles the menu open and close.

Specified by:
toggleMenu in class MenuDrawer
Parameters:
animate - Whether open/close should be animated.

openMenu

public void openMenu(boolean animate)
Description copied from class: MenuDrawer
Opens the menu.

Specified by:
openMenu in class MenuDrawer
Parameters:
animate - Whether open/close should be animated.

closeMenu

public void closeMenu(boolean animate)
Description copied from class: MenuDrawer
Closes the menu.

Specified by:
closeMenu in class MenuDrawer
Parameters:
animate - Whether open/close should be animated.

isMenuVisible

public boolean isMenuVisible()
Description copied from class: MenuDrawer
Indicates whether the menu is currently visible.

Specified by:
isMenuVisible in class MenuDrawer
Returns:
True if the menu is open, false otherwise.

setMenuSize

public void setMenuSize(int size)
Description copied from class: MenuDrawer
Set the size of the menu drawer when open.

Specified by:
setMenuSize in class MenuDrawer

setOffsetMenuEnabled

public void setOffsetMenuEnabled(boolean offsetMenu)
Description copied from class: MenuDrawer
Enables or disables offsetting the menu when dragging the drawer.

Specified by:
setOffsetMenuEnabled in class MenuDrawer
Parameters:
offsetMenu - True to offset the menu, false otherwise.

getOffsetMenuEnabled

public boolean getOffsetMenuEnabled()
Description copied from class: MenuDrawer
Indicates whether the menu is being offset when dragging the drawer.

Specified by:
getOffsetMenuEnabled in class MenuDrawer
Returns:
True if the menu is being offset, false otherwise.

peekDrawer

public void peekDrawer()
Description copied from class: MenuDrawer
Animates the drawer slightly open until the user opens the drawer.

Specified by:
peekDrawer in class MenuDrawer

peekDrawer

public void peekDrawer(long delay)
Description copied from class: MenuDrawer
Animates the drawer slightly open. If delay is larger than 0, this happens until the user opens the drawer.

Specified by:
peekDrawer in class MenuDrawer
Parameters:
delay - The delay (in milliseconds) between each run of the animation. If 0, this animation is only run once.

peekDrawer

public void peekDrawer(long startDelay,
                       long delay)
Description copied from class: MenuDrawer
Animates the drawer slightly open. If delay is larger than 0, this happens until the user opens the drawer.

Specified by:
peekDrawer in class MenuDrawer
Parameters:
startDelay - The delay (in milliseconds) until the animation is first run.
delay - The delay (in milliseconds) between each run of the animation. If 0, this animation is only run once.

setHardwareLayerEnabled

public void setHardwareLayerEnabled(boolean enabled)
Description copied from class: MenuDrawer
Enables or disables the user of View.LAYER_TYPE_HARDWARE when animations views.

Specified by:
setHardwareLayerEnabled in class MenuDrawer
Parameters:
enabled - Whether hardware layers are enabled.

getTouchMode

public int getTouchMode()
Description copied from class: MenuDrawer
Returns the touch mode.

Specified by:
getTouchMode in class MenuDrawer

setTouchMode

public void setTouchMode(int mode)
Description copied from class: MenuDrawer
Sets the drawer touch mode. Possible values are MenuDrawer.TOUCH_MODE_NONE, MenuDrawer.TOUCH_MODE_BEZEL or MenuDrawer.TOUCH_MODE_FULLSCREEN.

Specified by:
setTouchMode in class MenuDrawer
Parameters:
mode - The touch mode.

setTouchBezelSize

public void setTouchBezelSize(int size)
Description copied from class: MenuDrawer
Sets the size of the touch bezel.

Specified by:
setTouchBezelSize in class MenuDrawer
Parameters:
size - The touch bezel size in px.

getTouchBezelSize

public int getTouchBezelSize()
Description copied from class: MenuDrawer
Returns the size of the touch bezel in px.

Specified by:
getTouchBezelSize in class MenuDrawer


Copyright © 2012-2013. All Rights Reserved.