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, R.string.close);
Setup ActionBar like this:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
Added custom listener like this:
drawerToggle.setDrawerIndicatorEnabled(false);
drawerToggle.setToolbarNavigationClickListener(myListener);
Result: Click event is never fired.
How can I attach custom click events to ActionBarDrawerToggle? By Google's documentation, the key is only this: drawerToggle.setDrawerIndicatorEnabled(false);
. Thank you.