New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setDisplayHomeAsUpEnabled(true) goes nowhere #50
Comments
I achieved the same by adding the following line in Manifest file Please suggest me if there is another way to do so. |
@vishnudbimcs you mean the drawer toggle? the library itself provided basic drawer toggle functionality. you can also get the object back from the result. This library handles the MaterialDrawer and just basic stuff around it. So for special cases with the Toolbar or the ActionBarToggler just implement it as you would if you create a normal application. ;) |
Hello result.getActionBarDrawerToggle().setDrawerIndicatorEnabled(false);
getSupportActionBar().setDisplayHomeAsUpEnabled(true); And the backbutton is showed, however if I press it, it doesn't do anything. I have also made the Activity Override the OnbackPressed: @Override
public void onBackPressed() {
} But it is never hit. So I tested more things.
getSupportActionBar().setDisplayHomeAsUpEnabled(true); Results: Back button on Fragment A and B and it works.
I don't know what is happening here... |
First you need to initialize the toolbar :Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
I've called setDisplayHomeAsUpEnabled(true) and the arrow is showing, but it goes no where.
How can I do this
thanks.
The text was updated successfully, but these errors were encountered: