Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static abstract class

DrawerLayout.SimpleDrawerListener

extends Object
implements DrawerLayout.DrawerListener
java.lang.Object
   ↳ android.support.v4.widget.DrawerLayout.SimpleDrawerListener

Class Overview

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

Summary

Public Constructors
DrawerLayout.SimpleDrawerListener ()
Public Methods
void onDrawerClosed ( View drawerView)
Called when a drawer has settled in a completely closed state.
void onDrawerOpened ( View drawerView)
Called when a drawer has settled in a completely open state.
void onDrawerSlide ( View drawerView, float slideOffset)
Called when a drawer's position changes.
void onDrawerStateChanged (int newState)
Called when the drawer motion state changes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.support.v4.widget.DrawerLayout.DrawerListener

Public Constructors

public DrawerLayout.SimpleDrawerListener ()

Public Methods

public void onDrawerClosed ( View drawerView)

Called when a drawer has settled in a completely closed state.

Parameters
drawerView Drawer view that is now closed

public void onDrawerOpened ( View drawerView)

Called when a drawer has settled in a completely open state. The drawer is interactive at this point.

Parameters
drawerView Drawer view that is now open

public void onDrawerSlide ( View drawerView, float slideOffset)

Called when a drawer's position changes.

Parameters
drawerView The child view that was moved
slideOffset The new offset of this drawer within its range, from 0-1

public void onDrawerStateChanged (int newState)

Called when the drawer motion state changes. The new state will be one of STATE_IDLE , STATE_DRAGGING or STATE_SETTLING .

Parameters
newState The new drawer motion state