Questions tagged [android-drawer]

98 questions
3
votes
1 answer

StackOverflowError and I can't figure out why

I've had the following crash reported only once by a particular user on Android 4.0.3. I see no references in the stack tract to my code and I'm wondering if anyone has any ideas regarding what could be causing this issue? Obviously, not the…
NSouth
  • 5,067
  • 7
  • 48
  • 83
3
votes
0 answers

Change color of selected Navigation Drawer icons

I used the Android Studio template for creating an app with NavigationDrawer, but want to change to dark theme. This works quite good, but I've got problems changing the color of the icons and selected icon of the drawer. It's very similar to Change…
hgoebl
  • 12,637
  • 9
  • 49
  • 72
2
votes
0 answers

Flutter package blue_thermal_printer cash drawer failed to trigger

import 'package:blue_thermal_printer/blue_thermal_printer.dart'; BlueThermalPrinter bluetooth = BlueThermalPrinter.instance; extension PrintSize on Size { int get val { switch (this) { case Size.medium: return 0; case…
2
votes
1 answer

How to add drawer in every activity android?

I am new to android programming. i want to add drawer view in every activity. i have tried a lot to add drawer in every activity by extending main activity. but it's getting crash. please someone guide me how to add drawer in all activity from…
2
votes
0 answers

Android Drawer Submenu with Edit Action and Title [Google Keep Example]

I want to have a group in my navigation drawer which has a title and next to the title there should be an edit button like in the new Google Keep App (see example below). Currently I can't find a sleek and working solution. My menu layout at the…
2
votes
1 answer

Action Bar Drawer Toggle doesn't open navigation from right

I hava a problem with NavigationView and ActionBarDrawer Toggle when i touch the Toogle , the app closes and this is the error: Process: net.diginic.master, PID: 21770 java.lang.IllegalArgumentException: No drawer view found…
2
votes
2 answers

In Navigation Drawer Activity should I use activity or fragment on menu?

When item on drawer is clicked on should I make it call fragment or activity?
phwt
  • 1,356
  • 1
  • 22
  • 42
2
votes
1 answer

Application stop working after clicking on one of drawer menus

I'm learning how to use drawer to change fragments in different menus but when I clicked on menus with the script it's "Unfortunately, DrawerTest2 has stopped" Can someone take a look at my code to see what I did wrong? MainActivity.java package…
phwt
  • 1,356
  • 1
  • 22
  • 42
2
votes
3 answers

How to change the color of the drawer icon in toolbar

Hi I am using the "android.support.v4.widget.DrawerLayout" for drawer. I want to change the color of the Drawer icon.Please some one tell me how I can do it.I share my code. Please have a look and suggest me what I have to do to change the icon…
Jit
  • 173
  • 1
  • 2
  • 12
2
votes
2 answers

How to Create Multi-Level menus in navigation drawer layout

I want to create Multi-Level Menus in drawer Layout. My Activity.xml:-
2
votes
1 answer

change the icons direction for menu items(DrawerLayout) Android?

How I can change item direction menu? I need to change the icons direction to RTL instead of LTR, I use Gravity and Layout_Gravity but don't work . What can I do ? Below is my XML : menu_start.xml :
user4813855
2
votes
0 answers

How to set navigation drawer menuitem checked from within a Fragment?

I have an AppCompatActivity with DrawerLayout and a NavigationView. I can start three different fragments from the NavigationView. I want to show the checked status in the navigation drawer according to the fragment I am in. It works fine, when…
2
votes
1 answer

Android navigation drawer doesn't show listview. Just blank

I'm currently trying to add a navigation drawer to all my activities. I can see the navigation drawer when I swipe from the edge of the screen but there's nothing in it a black background here is my code for the DrawerActivity public class…
uruemu
  • 607
  • 6
  • 12
1
vote
0 answers

statusbar on android not fully transparent when drawer is open

I am trying to implement fully transparent statusbar so that activity background draws over statusbar. I made a research about this and found the code below working for me, at least for activity background override fun onCreate(savedInstanceState:…
1
vote
1 answer

Android: topLevelDestinationIds is ignored and the drawer menu appears every time when onDrawerSlide is set

I'm implementing Navigation Drawer using androidx.navigation.ui. Based on Android Studio's Navigation Drawer Activity Template, when I put in onDrawerSlide that works according to the drawer animation, the topLevelDesitnationIds set in…