Questions tagged [actionbardrawertoggle]
60 questions
1
vote
1 answer
Android ActionBarDrawerToggle
I am a complete beginner and wanted to know about actionbardrawer where we have "setDrawerLister()" and "syncState()" these two methods.
what does this method actually do?
user6177970
1
vote
3 answers
ActionBarDrawerToggle customization
How to change icon for ActionBarDrawerToggle in android using AppCompat V7? Also, how can we specify params and padding etc for ActionBarDrawerToggle icon?

seema
- 991
- 1
- 13
- 27
1
vote
2 answers
How to use setDisplayHomeAsUpEnabled and fragment
I have an activity with 2 fragments and drawer. So when i am in fragment i get "Up" icon instead hamburger icon (with the help of setDisplayHomeAsUpEnabled) but the action is still the same - navigation_drawer_open/close. So how to get…

SERG
- 3,907
- 8
- 44
- 89
1
vote
0 answers
Style ActionBarDrawerToggle programmatically
I started using ActionBarDrawerToggle to animate my navigation icon but have encountered a problem where I need to style the icon dynamically. Is there a way to do it programmatically?
I can style it with themes but that can't be done dynamically.…

Helsinki2
- 11
- 3
1
vote
3 answers
ActionBarDrawerToggle's setToolbarNavigationClickListener doesn't work
I am trying ti implement ActionBarDrawerToggle with custom click events but it seems it's not working.
I've created new ActionBarDrawerToggle like this:
drawerToggle = new ActionBarDrawerToggle(activity, drawer, R.string.open,…

Cristiano
- 3,099
- 10
- 45
- 67
1
vote
2 answers
Can't change DrawerLayout Icon even if Icon has been set in ActionBarDrawerToggle
I just created a template project in Android Studio and I did not change a line of code (DrawerLayout template project).
However, I found the clicked icon for showing the navigation fragment is always a left arrow, even though in the code it sets…

Qing
- 1,401
- 2
- 21
- 41
1
vote
1 answer
Navigation Drawer Toggle not working
This question might have been asked many times, but none of the solutions are working for me.
I have an activity that implements navigation drawer but the drawer toggle button is not working.
I don't know what I am missing, but it is really…

Aayush Subedi
- 191
- 1
- 12
1
vote
0 answers
android home up icon is showing instead of action bar drawer toggle menu icon
In my android app, I have navigation drawer and action bar drawer toggle icon with ic_menu icon which was working fine. Yesterday I added new dependency in my gradle file
compile 'com.android.support:design:22.2.0'
after added this, in main activity…

Sundar
- 11
- 2
1
vote
2 answers
The import android.support.v7.app.ActionBarDrawerToggle cannot be resolved
I am trying to use the ActionBarDrawerToggle and getting the error:
The import android.support.v7.app.ActionBarDrawerToggle cannot be resolved
It got no problem importing the v4 type but as I understand, it is deprecated and doesn't function as I…

CodeMonkey
- 11,196
- 30
- 112
- 203
1
vote
1 answer
nullpointerexception on calling syncstate() on ActionBarDrawerToggle object
I am getting Null pointer exception on calling the syncstate() function on ActionBarDrawerToggle object.
Navigation_logined.java
public class Navigation_logined extends Fragment {
DrawerLayout mDrawerLayout;
ActionBarDrawerToggle…

user3900924
- 93
- 6
1
vote
0 answers
Dual sided DrawerLayout, Left side works - Right doesn't
I am using DrawerLayout. I have two ListView for both side. Left side is working properly by clicking left-top corner button on ActionBar. Right side is working too.But Right side working only sliding from left to right swipe. I want to put a button…

Colorist
- 35
- 8
1
vote
2 answers
Set ActionBarDrawerToggle in center of toolbar or actionbar, android?
I have created my activity XML through java and also put the navigation drawer.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mDrawerLayout = new DrawerLayout(getApplicationContext());
…

WISHY
- 11,067
- 25
- 105
- 197
1
vote
0 answers
Up and hamburger icon issue with DrawerFragment and ActionBarDrawerToggle(v7)
I've got an issue with dealing with ActionBarDrawerToggle(v7) and icons.
Basically, i've got a classical Activity with a DrawerFragment and Fragments to be displayed and it works.
My issue occurs when i try to replace a Fragment with another for…

colletjb
- 279
- 3
- 16
0
votes
0 answers
How to set ImageView center when I add DrawerToggle?
When I added DrawerToggle(Hamburger) by using kotlin, the ImageView (TravelPocket) moved to right.
So, it is not in center..
I want to make it move to center not using margin or padding property.
below is my image.
problem…

DongDong
- 47
- 1
- 5
0
votes
1 answer
ActionBarDrawerToggle NullPointerException while loading from resources
When I launch the app, there are some issues with referencing the string values, They are navigation_drawer_open and navigation_drawer_close. Moreover, the problem occurred in the ActionBarDrawerToggle as well as drawer.addDrawerListener syntaxes.
…

Ersultan
- 3
- 3