Questions tagged [drawer]

753 questions
-2
votes
1 answer

Creating a Flutter Drawer with Full Screen Background Color like ChatGPT Android App

I'm attempting to implement a Flutter drawer similar to the ChatGPT Android App, aiming for a fullscreen background color that covers both the top status bar and bottom taskbar. However, I'm encountering difficulties in achieving this effect.…
-2
votes
3 answers

How to call Future Function to another class in flutter?

I am new in flutter. I created Drawer and loaded its header data from server by creating a future function. I want to recall this future function again from another class, so how can i do that. I also tried to call by creating its class object like…
Rakesh Saini
  • 660
  • 2
  • 7
  • 20
-2
votes
1 answer

Flutter Drawer: Is it possible to scroll only part of the drawer?

I'm trying to build an app where you could open a drawer and scroll only content below DrawerHeader(). When I have DrawerHeader as a child of ListView, naturally it scrolls with the whole list. I've tried Drawer(child:Column(children:…
Adam Plk
  • 38
  • 4
-2
votes
1 answer

Navigation Drawer from right to left?

I am using android studio 3.1 and I want to change the drawer so that it is shown from the right side . I tried android:layout_gravity="end" and that worked for me fine when swipping from rtl , but I still have one problem with the menu button on…
-2
votes
2 answers

Change to another activity when item Material Drawer is clicked

I am trying to switch to another activity when the item in Material Drawer is clicked. I am using Material Drawer (com.mikepenz.materialdrawer:library:2.9.8) in this application. The problem is when I try to switch to another activity with clicking…
Anggit Prayogo
  • 103
  • 1
  • 11
-2
votes
1 answer

Changing the Navigation Drawer menu on click

I have created a Basic Navigation Menu Drawer. What I want to do is change the Navigation Menu layout when i click on an Option. For example: My menu has Men, Women, Child. When I click on Men, I want to load another list in the same Navigation…
-2
votes
2 answers

Drawer below title app

I use next code to show a drawer layout in my application. I need to display the drawer under title bar. But always get it over title. I can't figure out where I do my mistake.
user7191265
-2
votes
1 answer

Android Error [java.lang.NullPointerException: 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference]

I have my main which contain a menu drawer with some fragments. Then a host page before to display the main. I have some errors about that Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on…
-2
votes
2 answers

Android add footer to navigation drawer

I am currently using a navigation drawer in one of my apps and want to add a footer space like google does, where I can put a settings and help & FAQ shortcut (just open any google app to find them). I currently am using the code foubd here:…
Broadwell
  • 1,343
  • 2
  • 19
  • 33
-2
votes
1 answer

Set a ContentView in the navigationdrawer

I'm kinda new into android programming, and I couldn't find the answer on the internet. I have set up a Navigation drawer in Android Studio, and I want to change the content view if that section is selected, for example, if I select a view "Tools"…
Rogier
  • 1
  • 2
-2
votes
1 answer

Change icon in Navigation Drawer on the fly

I'm currently trying to change the icon in Navigation Drawer when some event occurs. Is it possible?? I mean that I change the icon - it's no problem: mDrawerToggle = new ActionBarDrawerToggle( this, …
user3534709
  • 33
  • 1
  • 6
-3
votes
1 answer

How do I make a Navigational Drawer Activity open when the app launches in Android Studio?

I am new to Android development (and development in general) and I'm working on a simple app. The app uses the built-in Navigational Drawer Activity template that comes with Android Studio. Everything is working correctly, but now my goal is to make…
-3
votes
1 answer

Image header on android studio navigation drawer not fitting properly

I have created an android app with a navigation bar activity. I have added an image header to the navigation drawer activity. But, it is showing a little gap in the left. Please help me. Here is the link to the emulator…
-3
votes
1 answer

Navigation Drawer with header, indexOutOfBoundsException: length=9; index=9

I have Navigation Drawer and all is ok. but i want add header. In this case i receive this error when i clicked in the Last element of the drawer. java.lang.ArrayIndexOutOfBoundsException: length=9; index=9 this is my main code: …
aldakur
  • 419
  • 4
  • 16
-3
votes
3 answers

How to add Social Like . sharing and contact button in android drawer navigation

I want add social like and contact button on my drawer navigation footer . like this image (http://postimg.org/image/3mcbdod21/) please help me .
1 2 3
50
51