How to add navigation Drawer

Asked

Viewed 288 times

-2

I’ve already added Drawer navigation to my project, only I need to add menu button in the action bar, how can I solve this problem?

  • will need to use a Toolbar, it is easy.

  • @Icaro, do you have any example or tutorial that you can tell me?

1 answer

-2


Example of use ta Toolbar with navigation Drawer

It’s an example from Ricardo Lecheta’s book

https://github.com/icaronunes/Carro/blob/master/app/src/main/java/br/com/livroandroid/carros/activity/MainActivity.java

https://github.com/icaronunes/Carro/blob/master/app/src/main/java/br/com/livroandroid/carros/activity/BaseActivity.java

https://github.com/icaronunes/Carro/blob/master/app/src/main/res/layout/activity_main.xml

These three files do the work.

See mainly Basectivity and activity_main.xml

Browser other questions tagged

You are not signed in. Login or sign up in order to post.