Skip to content
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

How to show home button over open navigation drawer? #319

Closed
Jantzilla opened this issue Jan 18, 2019 · 0 comments
Closed

How to show home button over open navigation drawer? #319

Jantzilla opened this issue Jan 18, 2019 · 0 comments

Comments

@Jantzilla
Copy link

Is there a solution to show the home arrow over the open drawer header?

When the navigation drawer is attached, there seems to be no way to close the drawer via a visible home arrow, such as when using navigation drawer with Toolbar in the following way.

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        ActionBar actionbar = getSupportActionBar();
        actionbar.setDisplayHomeAsUpEnabled(true);
        actionbar.setHomeAsUpIndicator(R.drawable.ic_menu);

        ...
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant