Questions tagged [drawerlayout]

Android's DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from the edge of the window.

Android's DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from the edge of the window. It is commonly known as Android Navigation Drawer.

As per the Android Design guide, any drawers positioned to the left/start should always contain content for navigating around the application, whereas any drawers positioned to the right/end should always contain actions to take on the current content. This preserves the same navigation left, actions right structure present in the Action Bar and elsewhere.

The DrawerLayout class is available in the Android Support Library (android.support.v4.widget.DrawerLayout).

Some Useful links - Official API Reference and Navigation Drawer Example

Tag Usage:

843 questions
6
votes
1 answer

Autocomplete does not work in XML files in particular hierarchy

In particular XML nodes hierarchy eg. DrawerLayout->RelativeLayout->ImageButton autocomplete does not work as expected. Suggestion list contains invalid items. Eg. android:src is not shown inside ImageButton while it should be. Invalid…
koral
  • 2,513
  • 1
  • 32
  • 41
6
votes
4 answers

How to open Drawer Layout only with button?

I'm working on application that has a tab structure, and use sliding movements to move through the tabs. But now, I want to apply Drawer Layout. The problem is that the Drawer has slide to open events. How I can delete this event? My idea was that…
pgarriga
  • 610
  • 3
  • 8
  • 22
6
votes
3 answers

Toggle DrawerLayout With Title Only (NO App Icon)?

I have an activity with a DrawerLayout. I can open the drawer two different ways...by swiping from the left area of the screen towards the right and by clicking the app title. I DO NOT have an app icon displayed, only a title. I've implemented…
Jabari
  • 5,359
  • 3
  • 26
  • 32
5
votes
3 answers

Dynamically change status bar color without losing transparency

I know I can use colorPrimary to determine the color of Toolbar, and colorPrimaryDark to determine the color of Status bar. I'm using the following theme