Home
last modified time | relevance | path

Searched refs:mDrawerLayout (Results 1 – 14 of 14) sorted by relevance

/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
DDrawerLayoutDoubleTest.java52 private CustomDrawerLayout mDrawerLayout; field in DrawerLayoutDoubleTest
63 mDrawerLayout = (CustomDrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp()
64 mStartDrawer = mDrawerLayout.findViewById(R.id.start_drawer); in setUp()
65 mEndDrawer = mDrawerLayout.findViewById(R.id.end_drawer); in setUp()
66 mContentView = mDrawerLayout.findViewById(R.id.content); in setUp()
79 mDrawerLayout.isDrawerOpen(mContentView)); in testQueryOpenStateOfNonExistentDrawer()
88 mDrawerLayout.isDrawerVisible(mContentView)); in testQueryVisibleStateOfNonExistentDrawer()
118 mDrawerLayout.isDrawerOpen(mStartDrawer)); in verifyDrawerOpenClose()
120 mDrawerLayout.isDrawerVisible(mStartDrawer)); in verifyDrawerOpenClose()
122 mDrawerLayout.isDrawerOpen(mEndDrawer)); in verifyDrawerOpenClose()
[all …]
DDrawerLayoutTest.java75 private CustomDrawerLayout mDrawerLayout; field in DrawerLayoutTest
84 mDrawerLayout = (CustomDrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp()
85 mStartDrawer = mDrawerLayout.findViewById(R.id.start_drawer); in setUp()
86 mContentView = mDrawerLayout.findViewById(R.id.content); in setUp()
97 assertFalse("Initial state", mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI()
101 assertTrue("Opened drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI()
104 assertFalse("Closed drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI()
111 assertFalse("Initial state", mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI()
115 assertTrue("Opened drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI()
118 assertFalse("Closed drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI()
[all …]
DDrawerLayoutActivity.java46 private DrawerLayout mDrawerLayout; field in DrawerLayoutActivity
62 mDrawerLayout = findViewById(R.id.drawer_layout); in onContentViewSet()
66 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); in onContentViewSet()
71 mDrawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.drawer_title)); in onContentViewSet()
97 mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, in onContentViewSet()
111 mDrawerLayout.addDrawerListener(mDrawerToggle); in onContentViewSet()
117 mDrawerLayout.setStatusBarBackgroundColor(metalBlueColor); in onContentViewSet()
123 mDrawerLayout.getViewTreeObserver().addOnPreDrawListener( in onContentViewSet()
128 final int drawerLayoutWidth = mDrawerLayout.getWidth(); in onContentViewSet()
131 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); in onContentViewSet()
[all …]
DDrawerLayoutDoubleActivity.java37 private DrawerLayout mDrawerLayout; field in DrawerLayoutDoubleActivity
53 mDrawerLayout = findViewById(R.id.drawer_layout); in onContentViewSet()
58 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); in onContentViewSet()
63 mDrawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.drawer_title)); in onContentViewSet()
82 mDrawerLayout.setStatusBarBackgroundColor(metalBlueColor); in onContentViewSet()
89 if (mDrawerLayout.isDrawerOpen(mStartDrawer)) { in onBackPressed()
91 mDrawerLayout.closeDrawer(mStartDrawer); in onBackPressed()
96 if (mDrawerLayout.isDrawerOpen(mEndDrawer)) { in onBackPressed()
98 mDrawerLayout.closeDrawer(mEndDrawer); in onBackPressed()
114 mDrawerLayout.closeDrawer(mStartDrawer); in onItemClick()
DDrawerInteractionTest.java58 private TestDrawerLayout mDrawerLayout; field in DrawerInteractionTest
67 mDrawerLayout = new TestDrawerLayout(InstrumentationRegistry.getContext()); in setUp()
71 mDrawerLayout.setLayoutParams(new ViewGroup.LayoutParams(100, 100)); in setUp()
82 mDrawerLayout.addView(mContentView); in setUp()
83 mDrawerLayout.addView(mStartDrawer); in setUp()
84 mDrawerLayout.setBackgroundColor(0xFFFF0000); in setUp()
86 mDrawerLayout.expectLayouts(1); in setUp()
90 activity.setContentView(mDrawerLayout); in setUp()
93 assertThat(mDrawerLayout.waitForLayouts(2), is(true)); in setUp()
107 mDrawerLayout.dispatchGenericMotionEvent(motionEvent); in ui_pointerEvent_overDrawer_receivedByDrawer()
[all …]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
DDrawerLayoutActivity.java82 private DrawerLayout mDrawerLayout; field in DrawerLayoutActivity
96 mDrawerLayout = findViewById(R.id.drawer_layout); in onCreate()
101 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); in onCreate()
102 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow_end, GravityCompat.END); in onCreate()
107 mDrawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.drawer_title)); in onCreate()
133 mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, in onCreate()
147 mDrawerLayout.addDrawerListener(mDrawerToggle); in onCreate()
153 mDrawerLayout.setStatusBarBackgroundColor(metalBlueColor); in onCreate()
159 mDrawerLayout.getViewTreeObserver().addOnPreDrawListener( in onCreate()
164 final int drawerLayoutWidth = mDrawerLayout.getWidth(); in onCreate()
[all …]
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
DWearableDrawerController.java25 private final WearableDrawerLayout mDrawerLayout; field in WearableDrawerController
29 mDrawerLayout = drawerLayout; in WearableDrawerController()
37 mDrawerLayout.openDrawer(mDrawerView); in openDrawer()
44 mDrawerLayout.closeDrawer(mDrawerView); in closeDrawer()
51 mDrawerLayout.peekDrawer(mDrawerView); in peekDrawer()
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
DNavigationViewUsage.java36 private DrawerLayout mDrawerLayout; field in NavigationViewUsage
42 mDrawerLayout = findViewById(R.id.drawer_layout); in onCreate()
47 mDrawerLayout.setStatusBarBackgroundColor(value.data); in onCreate()
58 mDrawerLayout.openDrawer(GravityCompat.START); in onCreate()
74 mDrawerLayout.closeDrawers(); in getNavigationItemSelectedListener()
84 if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) {
85 mDrawerLayout.closeDrawer(GravityCompat.START);
/frameworks/support/car/src/main/java/androidx/car/drawer/
DCarDrawerController.java65 private final DrawerLayout mDrawerLayout; field in CarDrawerController
97 mDrawerLayout = drawerLayout; in CarDrawerController()
154 if (mDrawerLayout.isDrawerOpen(Gravity.LEFT)) { in closeDrawer()
155 mDrawerLayout.closeDrawer(Gravity.LEFT); in closeDrawer()
161 if (!mDrawerLayout.isDrawerOpen(Gravity.LEFT)) { in openDrawer()
162 mDrawerLayout.openDrawer(Gravity.LEFT); in openDrawer()
168 mDrawerLayout.addDrawerListener(listener); in addDrawerListener()
173 mDrawerLayout.removeDrawerListener(listener); in removeDrawerListener()
204 mDrawerLayout.addDrawerListener(mDrawerToggle); in setupDrawerToggling()
205 mDrawerLayout.addDrawerListener( in setupDrawerToggling()
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/drawer/
DDrawerTestActivity.java82 private WearableDrawerLayout mDrawerLayout; field in DrawerTestActivity
112 mDrawerLayout = (WearableDrawerLayout) findViewById(R.id.drawer_layout); in onCreate()
117 mDrawerLayout.setDrawerStateCallback(mCloseFirstDrawerOpenedCallback); in onCreate()
123 mDrawerLayout.openDrawer(Gravity.TOP); in onCreate()
125 mDrawerLayout.peekDrawer(Gravity.TOP); in onCreate()
131 mDrawerLayout.openDrawer(Gravity.BOTTOM); in onCreate()
133 mDrawerLayout.peekDrawer(Gravity.BOTTOM); in onCreate()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
DActionBarDrawerToggle.java117 private final DrawerLayout mDrawerLayout; field in ActionBarDrawerToggle
214 mDrawerLayout = drawerLayout; in ActionBarDrawerToggle()
236 if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) { in syncState()
243 mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in syncState()
282 int drawerLockMode = mDrawerLayout.getDrawerLockMode(GravityCompat.START); in toggle()
283 if (mDrawerLayout.isDrawerVisible(GravityCompat.START) in toggle()
285 mDrawerLayout.closeDrawer(GravityCompat.START); in toggle()
287 mDrawerLayout.openDrawer(GravityCompat.START); in toggle()
330 indicator = mDrawerLayout.getResources().getDrawable(resId); in setHomeAsUpIndicator()
357 mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in setDrawerIndicatorEnabled()
/frameworks/support/legacy/core-ui/src/main/java/androidx/legacy/app/
DActionBarDrawerToggle.java132 private final DrawerLayout mDrawerLayout; field in ActionBarDrawerToggle
209 mDrawerLayout = drawerLayout; in ActionBarDrawerToggle()
230 if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) { in syncState()
237 setActionBarUpIndicator(mSlider, mDrawerLayout.isDrawerOpen(GravityCompat.START) in syncState()
300 setActionBarUpIndicator(mSlider, mDrawerLayout.isDrawerOpen(GravityCompat.START) in setDrawerIndicatorEnabled()
344 if (mDrawerLayout.isDrawerVisible(GravityCompat.START)) { in onOptionsItemSelected()
345 mDrawerLayout.closeDrawer(GravityCompat.START); in onOptionsItemSelected()
347 mDrawerLayout.openDrawer(GravityCompat.START); in onOptionsItemSelected()
/frameworks/support/navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/
DNavigationActivity.java43 private DrawerLayout mDrawerLayout; field in NavigationActivity
58 mDrawerLayout = findViewById(R.id.drawer_layout); in onCreate()
59 NavigationUI.setupActionBarWithNavController(this, navController, mDrawerLayout); in onCreate()
110 mDrawerLayout, Navigation.findNavController(this, R.id.my_nav_host_fragment) in onSupportNavigateUp()
/frameworks/support/navigation/ui/src/main/java/androidx/navigation/ui/
DNavigationUI.java268 private final DrawerLayout mDrawerLayout; field in NavigationUI.ActionBarOnNavigatedListener
275 mDrawerLayout = drawerLayout; in ActionBarOnNavigatedListener()
287 actionBar.setDisplayHomeAsUpEnabled(mDrawerLayout != null || !isStartDestination); in onNavigated()
288 setActionBarUpIndicator(mDrawerLayout != null && isStartDestination); in onNavigated()