Questions tagged [drawertoggle]

46 questions
2
votes
4 answers

Drawer Indicator on ActionBar compat v7 21

My application uses ActionBarCompat library as well as the NavigationDrawer support library. I use ActionBarDrawerToggle appcompat v7 to get the drawer. There are a custom search view on ActionBar. Like this: But the drawer indicator shows wrongly,…
2
votes
1 answer

Set the spacing between title and v7 drawer toggle

I'm now using ActionBarDrawerToggle of the v7 support library. But the drawer icon is directly at the title font as I have disabled showHomeEnabled. How can I set more free space between the title and the toggle? Thanks
Made by FA
  • 710
  • 2
  • 7
  • 27
1
vote
1 answer

Android hamburger icon on navigation drawer does not respond after clicking

Details: After changing the hamburger icon into a custom icon it does not respond on clicking (drawer does not open) Here is the code snippet for oncreate method @Override protected void onCreate(Bundle savedInstanceState) { …
1
vote
2 answers

ActionBarDrawerToggle with AppCompatActivity and Toolbar Back button with Fragments

I am using the ActionBarDrawerToggle with NavigationView. My content is displayed using fragments. I am following this stackoverflow question to get the back button press to work but control never flows to onOptionsItemSelected. This is my…
1
vote
4 answers
1
vote
1 answer

Move toggle button to right

I want to set toggle button icon to right in my android app. here is my code. how I can do it?By the way I set the value of android:layout_gravity to right and now I want to set the Drawer's icon to right, too. How I can do this? My MainActivity's…
Sajjad Rostami
  • 303
  • 2
  • 3
  • 12
1
vote
1 answer

Changing Android Toolbar DrawerArrowToggle color

I am using Appcompat 7 in my project for Toolbar with navigation toggle. Everything works except the requirement to change the color of DrawerArrowToggle icon dynamically when each activity or fragment changes. My styles.xml file code is as…
Chandru
  • 5,954
  • 11
  • 45
  • 85
1
vote
1 answer

How to change the ripple color of the DrawerToggle (back arrow)

I want to change the ripple color of the DrawerToggle, but I couldn't find any way to do so. My style file looks like this. This changes the other menu items backgrounds but doesn't work for the back arrow. How do I change the ripple color of the…
osrl
  • 8,168
  • 8
  • 36
  • 57
1
vote
1 answer

How to programmatically setLockDrawerMode

I have created a toggle drawer where the drawer will slide from the right automatically when the user has clicked on the item displayed in the content view. However, at this point, the drawer can be manually toggled( user can slide open the drawer…
1
vote
3 answers

Drawer flip animation (Google Photos, Play Store etc.)

The all new hamburger-flip-animation for the drawer button: How to do this in Android L? (or lower sdk)
Jonas Borggren
  • 2,591
  • 1
  • 22
  • 40
1
vote
0 answers

Null Pointer exception when I try to add a "drawer toggle" in action bar activity with tabs

In my android project i have a Activity with actionbar that has 2 tabs, i also add a drawer menu but, when I try to setup the app icon to a toggle button for open the drawer, I get a Nullpointexception. Here is my code: public class…
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…
0
votes
1 answer

HamBurger Icon in ActionBar

I want to use a hamburger icon on the right side of my action bar. But it's showing an arrow sign. I have included Library AppCompatV7 and extending my class from Activity. Can someOne please give the solution. I have tried many solutions but none…
Naila
  • 270
  • 1
  • 4
  • 26
0
votes
1 answer

No Hamburger to Arrow animation or icon showing on Drawer

So I watched this youtube (https://www.youtube.com/watch?v=TahxgjZTpSA&list=PLCuRg51-gw5VqYchUekCqxUS9hEZkDf6l&index=49) tutorial and used his sample code (sample 50: http://cforbeginners.com/XamarinProjects.html) found in his website. I ran the…
0
votes
0 answers

Why is my DrawerToggle onClick not getting called?

When I am adding a fragment to my activity I am changing the hamburger icon to back arrow image and trying to set onClick to it. But for some reason it is not getting…