Home
last modified time | relevance | path

Searched refs:DrawerLayout (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DDrawerLayoutActions.java26 import android.support.v4.widget.DrawerLayout;
37 implements DrawerLayout.DrawerListener, IdlingResource {
38 private int mCurrState = DrawerLayout.STATE_IDLE;
59 return mCurrState == DrawerLayout.STATE_IDLE; in isIdleNow()
65 if (mCurrState == DrawerLayout.STATE_IDLE) { in onDrawerClosed()
74 if (mCurrState == DrawerLayout.STATE_IDLE) { in onDrawerOpened()
88 if (state == DrawerLayout.STATE_IDLE) { in onDrawerStateChanged()
117 final DrawerLayout drawer = (DrawerLayout) view; in wrap()
151 return isAssignableFrom(DrawerLayout.class);
163 DrawerLayout drawerLayout = (DrawerLayout) view;
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DDrawerLayoutDoubleTest.java19 import android.support.v4.widget.DrawerLayout;
104 setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN, mContentView)); in testLockNonExistentDrawer()
172 DrawerLayout.LOCK_MODE_UNLOCKED, mDrawerLayout.getDrawerLockMode(mStartDrawer)); in verifyDrawerLockUnlock()
174 DrawerLayout.LOCK_MODE_UNLOCKED, mDrawerLayout.getDrawerLockMode(mEndDrawer)); in verifyDrawerLockUnlock()
178 setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN, mStartDrawer)); in verifyDrawerLockUnlock()
181 DrawerLayout.LOCK_MODE_LOCKED_OPEN, mDrawerLayout.getDrawerLockMode(mStartDrawer)); in verifyDrawerLockUnlock()
183 DrawerLayout.LOCK_MODE_UNLOCKED, mDrawerLayout.getDrawerLockMode(mEndDrawer)); in verifyDrawerLockUnlock()
187 setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED, mStartDrawer)); in verifyDrawerLockUnlock()
191 DrawerLayout.LOCK_MODE_UNLOCKED, mDrawerLayout.getDrawerLockMode(mStartDrawer)); in verifyDrawerLockUnlock()
193 DrawerLayout.LOCK_MODE_UNLOCKED, mDrawerLayout.getDrawerLockMode(mEndDrawer)); in verifyDrawerLockUnlock()
[all …]
DDrawerLayoutTest.java24 import android.support.v4.widget.DrawerLayout;
245 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class); in testDrawerListenerCallbacksOnOpeningViaAPI()
272 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_SETTLING); in testDrawerListenerCallbacksOnOpeningViaAPI()
273 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_IDLE); in testDrawerListenerCallbacksOnOpeningViaAPI()
282 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class); in testDrawerListenerCallbacksOnOpeningNoAnimationViaAPI()
314 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class); in testDrawerListenerCallbacksOnClosingViaAPI()
341 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_SETTLING); in testDrawerListenerCallbacksOnClosingViaAPI()
342 inOrder.verify(mockedListener).onDrawerStateChanged(DrawerLayout.STATE_IDLE); in testDrawerListenerCallbacksOnClosingViaAPI()
354 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class); in testDrawerListenerCallbacksOnClosingNoAnimationViaAPI()
383 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class); in testDrawerListenerCallbacksOnOpeningViaSwipes()
[all …]
DDrawerDynamicLayoutTest.java19 import android.support.v4.widget.DrawerLayout;
176 final DrawerLayout startDrawer =
177 (DrawerLayout) mActivityTestRule.getActivity().findViewById(R.id.drawer_layout);
178 DrawerLayout.DrawerListener mockedListener = mock(DrawerLayout.DrawerListener.class);
DDrawerLayoutActivity.java24 import android.support.v4.widget.DrawerLayout;
45 private DrawerLayout mDrawerLayout;
61 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onContentViewSet()
143 final DrawerLayout.LayoutParams drawerLp = in onContentViewSet()
144 (DrawerLayout.LayoutParams) mDrawer.getLayoutParams(); in onContentViewSet()
DDrawerLayoutDoubleActivity.java22 import android.support.v4.widget.DrawerLayout;
39 private DrawerLayout mDrawerLayout;
55 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onContentViewSet()
/frameworks/support/design/tests/src/android/support/design/testutils/
DDrawerLayoutActions.java21 import android.support.v4.widget.DrawerLayout;
35 return isAssignableFrom(DrawerLayout.class); in openDrawer()
47 DrawerLayout drawerLayout = (DrawerLayout) view; in openDrawer()
63 return isAssignableFrom(DrawerLayout.class);
75 DrawerLayout drawerLayout = (DrawerLayout) view;
DTextInputLayoutActions.java24 import android.support.v4.widget.DrawerLayout;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDrawerController.java25 import android.support.v4.widget.DrawerLayout;
26 import android.support.v4.widget.DrawerLayout.DrawerListener;
79 DrawerLayout layout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); in create()
125 private DrawerLayout mLayout;
131 DrawerLayout layout, View drawer, ActionBarDrawerToggle toggle, in RuntimeDrawerController()
198 if (newState == DrawerLayout.STATE_DRAGGING) { in onDrawerStateChanged()
/frameworks/base/docs/html/training/implementing-navigation/
Dnav-drawer.jd2 page.tags=DrawerLayout,navigation
13 <li><a href="#DrawerLayout">Create a Drawer Layout</a></li>
45 {@link android.support.v4.widget.DrawerLayout} APIs available in the
56 <h2 id="DrawerLayout">Create a Drawer Layout</h2>
59 {@link android.support.v4.widget.DrawerLayout} object as the root view of your layout.
60 Inside the {@link android.support.v4.widget.DrawerLayout}, add one view that contains
65 android.support.v4.widget.DrawerLayout} with two child views: a {@link android.widget.FrameLayout}
70 &lt;android.support.v4.widget.DrawerLayout
89 &lt;/android.support.v4.widget.DrawerLayout>
96 android.support.v4.widget.DrawerLayout} because the XML order implies z-ordering
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarDrawerToggle.java28 import android.support.v4.widget.DrawerLayout;
64 public class ActionBarDrawerToggle implements DrawerLayout.DrawerListener {
115 private final DrawerLayout mDrawerLayout;
147 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, in ActionBarDrawerToggle()
178 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, in ActionBarDrawerToggle()
191 DrawerLayout drawerLayout, T slider, in ActionBarDrawerToggle()
287 && (drawerLockMode != DrawerLayout.LOCK_MODE_LOCKED_OPEN)) { in toggle()
289 } else if (drawerLockMode != DrawerLayout.LOCK_MODE_LOCKED_CLOSED) { in toggle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DSettingsDrawerActivity.java32 import android.support.v4.widget.DrawerLayout;
71 private DrawerLayout mDrawerLayout;
87 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onCreate()
94 mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); in onCreate()
161 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in setIsDrawerPresent()
165 mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); in setIsDrawerPresent()
209 mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); in updateDrawer()
211 mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); in updateDrawer()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/
DCustomDrawerLayout.java24 import android.support.v4.widget.DrawerLayout;
26 public class CustomDrawerLayout extends DrawerLayout {
/frameworks/support/v4/java/android/support/v4/app/
DActionBarDrawerToggle.java34 import android.support.v4.widget.DrawerLayout;
65 public class ActionBarDrawerToggle implements DrawerLayout.DrawerListener {
194 private final DrawerLayout mDrawerLayout;
226 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, in ActionBarDrawerToggle()
259 public ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, boolean animate, in ActionBarDrawerToggle()
/frameworks/support/v4/java/android/support/v4/widget/
DDrawerLayout.java97 public class DrawerLayout extends ViewGroup implements DrawerLayoutImpl { class
360 public DrawerLayout(Context context) { in DrawerLayout() method in DrawerLayout
364 public DrawerLayout(Context context, AttributeSet attrs) { in DrawerLayout() method in DrawerLayout
368 public DrawerLayout(Context context, AttributeSet attrs, int defStyle) { in DrawerLayout() method in DrawerLayout
2069 DrawerLayout.this.removeCallbacks(mPeekRunnable); in removeCallbacks()
2282 info.setClassName(DrawerLayout.class.getName()); in onInitializeAccessibilityNodeInfo()
2297 event.setClassName(DrawerLayout.class.getName()); in onInitializeAccessibilityEvent()
/frameworks/support/design/tests/src/android/support/design/widget/
DNavigationViewTest.java25 import android.support.v4.widget.DrawerLayout;
58 private DrawerLayout mDrawerLayout;
69 mDrawerLayout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp()
/frameworks/support/v4/api/
D22.1.0.txt31 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
32 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
33 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
2744 public class DrawerLayout extends android.view.ViewGroup {
2745 ctor public DrawerLayout(android.content.Context);
2746 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
2747 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
2763 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
2782 public static abstract interface DrawerLayout.DrawerListener {
2789 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D22.0.0.txt31 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
32 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
33 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
2511 public class DrawerLayout extends android.view.ViewGroup {
2512 ctor public DrawerLayout(android.content.Context);
2513 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
2514 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
2530 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
2549 public static abstract interface DrawerLayout.DrawerListener {
2556 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D22.2.1.txt60 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
61 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
62 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
2820 public class DrawerLayout extends android.view.ViewGroup {
2821 ctor public DrawerLayout(android.content.Context);
2822 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
2823 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
2839 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
2858 public static abstract interface DrawerLayout.DrawerListener {
2865 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D22.2.0.txt60 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
61 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
62 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
2819 public class DrawerLayout extends android.view.ViewGroup {
2820 ctor public DrawerLayout(android.content.Context);
2821 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
2822 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
2838 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
2857 public static abstract interface DrawerLayout.DrawerListener {
2864 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D23.0.0.txt61 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
62 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
63 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
3101 public class DrawerLayout extends android.view.ViewGroup {
3102 ctor public DrawerLayout(android.content.Context);
3103 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
3104 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
3122 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
3141 public static abstract interface DrawerLayout.DrawerListener {
3148 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D23.1.0.txt61 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
62 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
63 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
3133 public class DrawerLayout extends android.view.ViewGroup {
3134 ctor public DrawerLayout(android.content.Context);
3135 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
3136 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
3154 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
3173 public static abstract interface DrawerLayout.DrawerListener {
3180 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
D23.1.1.txt31 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
32 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
33 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
3093 public class DrawerLayout extends android.view.ViewGroup {
3094 ctor public DrawerLayout(android.content.Context);
3095 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
3096 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
3114 method public void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
3133 public static abstract interface DrawerLayout.DrawerListener {
3140 public static class DrawerLayout.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
[all …]
Dcurrent.txt31 …public deprecated class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.Dr…
32 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
33 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, bo…
3346 public class DrawerLayout extends android.view.ViewGroup {
3347 ctor public DrawerLayout(android.content.Context);
3348 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet);
3349 ctor public DrawerLayout(android.content.Context, android.util.AttributeSet, int);
3350 method public void addDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
3371 method public void removeDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListener);
3373 …method public deprecated void setDrawerListener(android.support.v4.widget.DrawerLayout.DrawerListe…
[all …]
/frameworks/support/v7/appcompat/api/
D22.0.0.txt147 …public class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.DrawerListene…
148 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, in…
149 …ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, an…

12