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
-1
votes
2 answers

NavigationDrawer and ViewPager - swiping issue

I have a ViewPager with 3 fragments in it. I have extended ViewPager and disabled its swiping abilities for reasons specific to my app. So, for navigation between these fragments, I've added a TabLayout to to my activity. In my second fragment (the…
bernardo.g
  • 826
  • 1
  • 12
  • 27
-1
votes
1 answer

Make drawerlayout inside fragment full screen height

I have an activity A which consists of fragments B,c etc. In each of the fragments I have a drawerlayout which has a fragment. The activity A has a toolbar. The problem is that since drawerlayout is inside the fragment, it's drawn below the toolbar…
nayakasu
  • 889
  • 1
  • 11
  • 32
-1
votes
1 answer

Unable to do fragment transition from navigation bar

I have created a Tab Layout of seven tabs. There is also a Navigation Drawer in my app. The drawer opens well but when I select any of the item in the navigation Drawer, the app closes forcefully.Below is my Main Activity.Java public class…
-1
votes
2 answers

Android DrawerLayout Lagging

The DrawerLayout take noticeable time to close here is my code: @Override public void onDrawerOpened(View drawerView) { if (items.size() == 0) view.setVisibility(View.GONE); …
Radwa
  • 325
  • 4
  • 21
-1
votes
1 answer

Exception at mydrawer.setDrawerListener(myactiontoggle) in Android

I am using drawer in my project but sometimes it throw NullpointerException, below is my code where I got exception: DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); toggle = new ActionBarDrawerToggle(TabSample.this,…
ankit
  • 2,591
  • 2
  • 29
  • 54
-1
votes
1 answer

custom header view not heighlight when drawerlayout open

I am using drawerlayout with custom view instead of toolbar,when drawer open custom view faded,but i want when drawerlayout open custom header view should not fade. my view look now drawerlayout screen mainactivity.xml
Rishi
  • 153
  • 2
  • 15
-1
votes
1 answer

Android Navigation menu setting

I have researched on setting the navigation menu on Android. I have found a couple of answers on how to set it but my problem is that it is not even visible, sorry if this question is straight forward but am really new in this programming language,…
-1
votes
1 answer
-1
votes
1 answer

DrawerLayout Access violation Windows Phone 8.1

I have problem with drawingLayout in Windows Phone 8.1. I implementet this layout on each pages in my app, and I initialized it on each pages. On one site Im want to Navigate to the same site for example: I am on site named Page1 and I want to…
-1
votes
1 answer

Left Navigation menu below toolbar and right navigation menu over toolbar

I have two navigation menus in a drawer layout, Left and Right. I want the Left Navigation menu below the toolbar and Right Navigation Menu over the toolbar as shown in the diagram below: How to achieve this? My Layout is:
Ratul Doley
  • 499
  • 1
  • 6
  • 12
-1
votes
1 answer

Android use Drawer layout inside Scroll view

When i am trying to use drawer layout inside scroll view my App Crashes Stack Trace: 06-07 14:35:30.482 18292-18292/com.example.mmido.trivelgob2b E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.mmido.trivelgob2b, PID: 18292 …
Asmaa Rashad
  • 593
  • 5
  • 28
-1
votes
1 answer

How to add text programatically to a drawer menu item?

I have an online jokes app with a simple drawer layout. When I launch the app, a PHP script gets new jokes(added from last visit) and counts them. I want to add to the Menu item that displays the jokes the number of new jokes found, ex:3.( the…
stcojo
  • 65
  • 7
-1
votes
1 answer

How to delete existing NavHeader view while adding an updated one using NavigationView.addHeaderView()?

I have a NavigationView in a Drawer Layout which contains a HeaderView followed by a Menu (as given in AndroidStudio's Navigation Drawer Activity's template). My Header contains an Image and couple of TextViews in a LinearLayout. I want to edit of…
fanatic
  • 7
  • 6
-1
votes
2 answers

Android DrawLayout Implementation

ive been following this post Android Navigation Drawer implemented with Activities However the application crashes before it displays any content. Also it doesnt appear to get the the OnCreate menthod as its not triggering any breakpoints here is my…
PowerMan2015
  • 1,307
  • 5
  • 19
  • 40
-1
votes
2 answers

Creating new grid crashes Windows phone app

I would like to know why creating another instance of Grid is making my app crash. It is a basic RSS Feed reader app. The app opens fine, I can see the MainPage, and the DrawerLayout object works, but when clicking an item (article) (which then…
as__
  • 77
  • 1
  • 10