Jump to content

what is the correct way to use toolbar?


Recommended Posts

i'm trying to set actionbar on my android studio project. while debugging, android studio doesn't show any errorĀ but when i run my app, it stops at this line. please suggest me the perfect way of working with toolbar on android studio.

Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);

thank you all in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...