Questions tagged [actionbardrawertoggle]
60 questions
0
votes
1 answer
androidx.legacy.app.ActionBarDrawerToggle' is deprecated
I use androidx library and i have androidx.legacy.app.ActionBarDrawerToggle' is deprecated error in the following code:
private ActionBarDrawerToggle mDrawerToggle;
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
//…

Healthydev Developments
- 121
- 2
- 12
0
votes
0 answers
Calling ActionBarDrawerToggle's syncState in onCreate
The Android documentation says
Call syncState() from your Activity's onPostCreate to synchronize the indicator with the state of the linked DrawerLayout after onRestoreInstanceState has…

Florian Walther
- 6,237
- 5
- 46
- 104
0
votes
0 answers
ActionBarDrawerToggle right side on android with navigation view
Hy i need a actionbardrawertoggle in right side on my app-bar if i use a navigation view.
First, navigation view in main ->

Dancs Berci
- 77
- 6
0
votes
0 answers
Action Bar Drawer Toggle Button not getting displayed for the second activity
I have following two activities in my android app:
1) LevelSelectActivity (activity_level_select.xml)
2) OptionsQuizActivity (activity_options_quiz.xml)
1st activity calls 2nd activity. I have navigation drawer set for both activities with a custom…

Kuldeep Kumar
- 905
- 3
- 9
- 22
0
votes
2 answers
Drawer toggle button not displaying on Action Bar
I have two activities in my app and both have navigation drawers implemented. Now the scenario is that the Drawer toggle is getting displayed for the first activity but for the same code its not getting displayed for the second activity (which is…

Kuldeep Kumar
- 905
- 3
- 9
- 22
0
votes
2 answers
Visual Studio 2015 - Adding Android Support Library v4 and v7 to use DrawerLayout and ActionBarDrawerToggle
I am trying to add these 2 support libraries to my project through Nuget Manager in Visual Studio in order to be able to use DrawerLayout and ActionBarDrawerToggle. However, both libraries are failing to install with the same error:
*****Could not…

pixel
- 9,653
- 16
- 82
- 149
0
votes
2 answers
how to change actionbar hamburger icon to back icon (with animation) from activity
No, its not a re asked question
I've searched so well. but nowhere found how to do this. I want to change the hamburger icon to back icon by calling a method from my activity. I can do it with Drawer.. but I wanna do it without opening drawer..…

dhir
- 187
- 2
- 15
0
votes
1 answer
Android Drawer Toggle
I've been trying to add this toggle for 5 hours. But it keeps telling be that the drawerLayout is null, which doesn't make any sense because it exists and I've been using it.
package com.example.android.musicalstructure;
import…

Ihsan Hashem
- 1
- 2
0
votes
1 answer
padding to ActionBarDrawerToggle
I want to keep the ActionBarDrawerToggle icon(hamburger) to the edge of the screen.
But by default it gives some space from the edge.
How to keeps the icon to the side of edge(basically no space).

Annada
- 1,075
- 1
- 18
- 21
0
votes
1 answer
Cant use ActionBarDrawerToggle due to target sdk version
So long story short ive needed to mess with the dependencies section of the gradle so i had to replace the support for v4 due to a new taget sdk version. Because i cant use v4 support actionbardrawertoggle dosent appear to be showing up anymore…

XvKnightvX
- 579
- 7
- 23
0
votes
2 answers
Recyler view item gets selected only on clicking the text
I have implemented the RecyclerView with an adapter for items and each item has a drawer item layout containing an imageview and a textview.
The problem is that the onClick function is called only when the image or the "actual text" which differs in…

Shruti Saagar
- 79
- 1
- 11
0
votes
0 answers
How to disable Drawer Toggle in toolbar
In the main activity I got a a Recycler View and a Toolbar, along with a Navigation Drawer. While the Recycler is being loaded, I darken it and the toolbar as well, and block the Navigation Drawer to be opened when swiping. However I'm not able to…

danman
- 13
- 5
0
votes
2 answers
How to use ActionBarDrawerToggle to close both left & right navigation drawers?
I have the following layout in my activity.xml
`

Anfal
- 344
- 1
- 3
- 15
0
votes
1 answer
How can the ActionBarDrawerToggle be hidden upon user logout?
I am new to Android development. I want to allow the drawer to be shown and used for navigation when a user is logged in, but hidden when the user logs out. How can this be done? It is currently set to close the drawer and set listener to null, but…

J.J.
- 1,128
- 2
- 23
- 62
0
votes
1 answer
Add NavigationDrawer toggler by replacing back navigation in action bar
I have an activity in my app which is not launcher.
I want to add a navigation drawer with toggler. I tried following the instructions here http://developer.android.com/training/implementing-navigation/nav-drawer.html#ActionBarIcon
But my back…

Ishan
- 3,303
- 5
- 29
- 47