android.support.v4.widget
Class DrawerLayout.SimpleDrawerListener

java.lang.Object
  extended by android.support.v4.widget.DrawerLayout.SimpleDrawerListener
All Implemented Interfaces:
DrawerLayout.DrawerListener
Enclosing class:
DrawerLayout

public abstract static class DrawerLayout.SimpleDrawerListener
extends java.lang.Object
implements DrawerLayout.DrawerListener

Stub/no-op implementations of all methods of DrawerLayout.DrawerListener. Override this if you only care about a few of the available callback methods.


Constructor Summary
DrawerLayout.SimpleDrawerListener()
           
 
Method Summary
 void onDrawerClosed(android.view.View drawerView)
          Called when a drawer has settled in a completely closed state.
 void onDrawerOpened(android.view.View drawerView)
          Called when a drawer has settled in a completely open state.
 void onDrawerSlide(android.view.View drawerView, float slideOffset)
          Called when a drawer's position changes.
 void onDrawerStateChanged(int newState)
          Called when the drawer motion state changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawerLayout.SimpleDrawerListener

public DrawerLayout.SimpleDrawerListener()
Method Detail

onDrawerSlide

public void onDrawerSlide(android.view.View drawerView,
                          float slideOffset)
Description copied from interface: DrawerLayout.DrawerListener
Called when a drawer's position changes.

Specified by:
onDrawerSlide in interface DrawerLayout.DrawerListener
Parameters:
drawerView - The child view that was moved
slideOffset - The new offset of this drawer within its range, from 0-1

onDrawerOpened

public void onDrawerOpened(android.view.View drawerView)
Description copied from interface: DrawerLayout.DrawerListener
Called when a drawer has settled in a completely open state. The drawer is interactive at this point.

Specified by:
onDrawerOpened in interface DrawerLayout.DrawerListener
Parameters:
drawerView - Drawer view that is now open

onDrawerClosed

public void onDrawerClosed(android.view.View drawerView)
Description copied from interface: DrawerLayout.DrawerListener
Called when a drawer has settled in a completely closed state.

Specified by:
onDrawerClosed in interface DrawerLayout.DrawerListener
Parameters:
drawerView - Drawer view that is now closed

onDrawerStateChanged

public void onDrawerStateChanged(int newState)
Description copied from interface: DrawerLayout.DrawerListener
Called when the drawer motion state changes. The new state will be one of DrawerLayout.STATE_IDLE, DrawerLayout.STATE_DRAGGING or DrawerLayout.STATE_SETTLING.

Specified by:
onDrawerStateChanged in interface DrawerLayout.DrawerListener
Parameters:
newState - The new drawer motion state