Questions tagged [drawertoggle]

46 questions
97
votes
5 answers

How to implement DrawerArrowToggle from Android appcompat v7 21 library

So now that Android 5.0 was released i was wondering how to implement the animated actionbar icons. This library here implements it fine for me but since the appcompat v7 library has it how can it be implemented? The library references it in…
65
votes
8 answers

How to detect that the DrawerLayout started opening?

So I have tabs that I want to hide when the Navigation Drawer starts opening. The code I have hides them when it finished opening, but it's not what I want. mDrawerToggle = new ActionBarDrawerToggle( this, …
Oleksiy
  • 37,477
  • 22
  • 74
  • 122
33
votes
2 answers

How animate Burger to Arrow with Appcompat v7 21, Toolbar and DrawerLayout

I am using the android.support.v7.widget.Toolbar with a android.support.v4.widget.DrawerLayout. It works fine, the Burger icon is shown when the Navigation Drawer is closed, and the Arrow icon is shown when the Drawer is open. I want to disable the…
22
votes
5 answers

Android support Toolbar + ActionBarDrawerToggle not changing to arrow

I'm struggling with the toolbar and drawer. I'm trying to make the burger switch to arrow when I'm adding a new fragment to the backstack but there is no way to do it. Maybe I'm missing something but I could not find a way. Anyone had the same…
Marcel
  • 2,094
  • 3
  • 23
  • 37
10
votes
1 answer

Drawer like Google material design for iOS

I'd like to implement navigation drawer like Uber into iOS(swift). I'm going to achieve it by using a library, called KYDrawerController. https://github.com/ykyouhei/KYDrawerController However, it cannot provide toggle button, only slide action.…
Toshi
  • 1,293
  • 3
  • 19
  • 37
9
votes
2 answers

ActionBarDrawerToggle() icon cannot be set to the ActionBar in Android SDK 5

I have a simple problem with initializing my icon for my action bar. I am using Android SDK 5 and since android.support.v4.app.ActionBarDrawerToggle; was deprecated I imported v7 support and replaced my import with the following:…
Ams
  • 347
  • 1
  • 3
  • 12
6
votes
3 answers

android.support.v7 Toolbar & DrawerLayout- how to hide Hamburger icon

I am implementing Toolbar along and Navigation drawer.I am customized my tool bar with my own views.I have my own menu(Hamburger) icon in my toolbar to open navigation drawer and I am showing badge count on my menu icon(Hamburger).So i would like to…
6
votes
3 answers

Android 5.0 - Animate the AppCompat v7 21 home icon from burger to back arrow programmatically

I'm currently updating a Fragment oriented app (I have one Activity with a FrameLayout container as host for all my Fragments) to Material Design. And I would like to animate the burger icon to the back arrow when replacing a Fragment. Basically, if…
5
votes
2 answers

Changing Hamburger Action bar Icon to Rotating Arrow Not Working, when Opening the Navigation Drawer in Android

I am using Navigation Drawer in my Android application,its Working fine. i want to add some Animation for Open and Close the Navigation Drawer. Animation: 1.Opening-Navigation Drawer show the Arrow ,Hide the Hamburger. 2.Closing-Again Show the…
Kumar
  • 969
  • 2
  • 22
  • 56
4
votes
1 answer

Action Bar Drawer Toggle Custom Icon

I'm trying to use the action bar drawer toggle, but I would like it to display something more than just the menu icon. I want it to display a notification count in the top right corner of my custom menu icon, but I still want the action bar drawer…
user3240782
  • 83
  • 1
  • 4
3
votes
0 answers

Open Drawer of child from parent React Navigation V5

I have the main navigation of App setup. Here I initialize route stacks which can have drawer, stacks or tabs stacks. navigation.js const Stack = createStackNavigator(); const AppNavigation = () => { return (
3
votes
0 answers

android Drawer Layout select or focus item as default on DrwerOpen listView

I am trying to make onDrawerOpen to focus on ListView not Buttons. Basically when I am opening the drawer the focus is always on the buttons layout but I want to be on the item list (listView ) when it opens as default. Anyone can write a simple…
altin bana
  • 101
  • 1
  • 12
3
votes
4 answers

Is possible to increase the size of ActionBarDrawerToggle (Drawer menu)?

I followed ActionBarDrawerToggle GUIDE And I know how to show the icon of drawer on Action Bar by using drawerImageRes in this. public ActionBarDrawerToggle (Activity activity, DrawerLayout drawerLayout, int drawerImageRes, int…
Huy Tower
  • 7,769
  • 16
  • 61
  • 86
2
votes
3 answers

new fragment cannot be loaded by clicking on Drawer item in Android Studio

I've implemented the following code , but when I run the app and click on an item in Drawer nothing happened. I guess it's a problem related to the Listener but I couldn't grasp how to fix it. or maybe other problem! once I click on one item the…
2
votes
0 answers

Hide or Remove DrawerToggle indicator/icon

I am working on xamrain android application.I am using MvxActionBarDrawerToggle.I am not able to hide/remove Drawer indicator/icon. I have tried ((MainActivity)Activity).SupportActionBar.SetDefaultDisplayHomeAsUpEnabled (false); …
Dhruv Gohil
  • 335
  • 4
  • 12
1
2 3 4