Can i add a calculator button to android studio action bar?

  android, android-studio, calculator

I have an android studio project I am working on, I am building a study related app and I want my users to be able to access a simple arithmetic calculator on the app, on all pages that is why I want it on action bar.

Once the user clicks the button or icon which I want to display on the action bar, it will pop up a simple arithmetic (basic calculation) screen.

Please does anyone have the code to get this done? I really need this, thank you in advance.

Source: Android Questions