1 package android.support.v4.widget { 2 3 public class DrawerLayout extends android.view.ViewGroup { 4 ctor public DrawerLayout(android.content.Context); 5 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet); 6 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int); 7 method public void addDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener); 8 method public void closeDrawer(android.view.View); 9 method public void closeDrawer(android.view.View, boolean); 10 method public void closeDrawer(int); 11 method public void closeDrawer(int, boolean); 12 method public void closeDrawers(); 13 method public float getDrawerElevation(); 14 method public int getDrawerLockMode(int); 15 method public int getDrawerLockMode(android.view.View); 16 method public java.lang.CharSequence getDrawerTitle(int); 17 method public android.graphics.drawable.Drawable getStatusBarBackgroundDrawable(); 18 method public boolean isDrawerOpen(android.view.View); 19 method public boolean isDrawerOpen(int); 20 method public boolean isDrawerVisible(android.view.View); 21 method public boolean isDrawerVisible(int); 22 method public void onDraw(android.graphics.Canvas); 23 method public void openDrawer(android.view.View); 24 method public void openDrawer(android.view.View, boolean); 25 method public void openDrawer(int); 26 method public void openDrawer(int, boolean); 27 method public void removeDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener); 28 method public void setDrawerElevation(float); 29 method public deprecated void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener); 30 method public void setDrawerLockMode(int); 31 method public void setDrawerLockMode(int, int); 32 method public void setDrawerLockMode(int, android.view.View); 33 method public void setDrawerShadow(android.graphics.drawable.Drawable, int); 34 method public void setDrawerShadow(int, int); 35 method public void setDrawerTitle(int, java.lang.CharSequence); 36 method public void setScrimColor(int); 37 method public void setStatusBarBackground(android.graphics.drawable.Drawable); 38 method public void setStatusBarBackground(int); 39 method public void setStatusBarBackgroundColor(int); 40 field public static final int LOCK_MODE_LOCKED_CLOSED = 1; // 0x1 41 field public static final int LOCK_MODE_LOCKED_OPEN = 2; // 0x2 42 field public static final int LOCK_MODE_UNDEFINED = 3; // 0x3 43 field public static final int LOCK_MODE_UNLOCKED = 0; // 0x0 44 field public static final int STATE_DRAGGING = 1; // 0x1 45 field public static final int STATE_IDLE = 0; // 0x0 46 field public static final int STATE_SETTLING = 2; // 0x2 47 } 48 49 public static abstract interface DrawerLayout.DrawerListener { 50 method public abstract void onDrawerClosed(android.view.View); 51 method public abstract void onDrawerOpened(android.view.View); 52 method public abstract void onDrawerSlide(android.view.View, float); 53 method public abstract void onDrawerStateChanged(int); 54 } 55 56 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams { 57 ctor public DrawerLayout.LayoutParams(android.content.Context, android.util.AttributeSet); 58 ctor public DrawerLayout.LayoutParams(int, int); 59 ctor public DrawerLayout.LayoutParams(int, int, int); 60 ctor public DrawerLayout.LayoutParams(android.support.v4.widget.DrawerLayout.LayoutParams); 61 ctor public DrawerLayout.LayoutParams(android.view.ViewGroup.LayoutParams); 62 ctor public DrawerLayout.LayoutParams(android.view.ViewGroup.MarginLayoutParams); 63 field public int gravity; 64 } 65 66 protected static class DrawerLayout.SavedState extends android.support.v4.view.AbsSavedState { 67 ctor public DrawerLayout.SavedState(android.os.Parcel, java.lang.ClassLoader); 68 ctor public DrawerLayout.SavedState(android.os.Parcelable); 69 field public static final android.os.Parcelable.Creator<android.support.v4.widget.DrawerLayout.SavedState> CREATOR; 70 } 71 72 public static abstract class DrawerLayout.SimpleDrawerListener implements android.support.v4.widget.DrawerLayout.DrawerListener { 73 ctor public DrawerLayout.SimpleDrawerListener(); 74 method public void onDrawerClosed(android.view.View); 75 method public void onDrawerOpened(android.view.View); 76 method public void onDrawerSlide(android.view.View, float); 77 method public void onDrawerStateChanged(int); 78 } 79 80 } 81 82