Simplest way to create a menu item is through selection of activity, when we choose a activity before starting a program. Android has made lot of things easy for us to see and implement. Just like they made menu item activity. which they name BasicActivity in android.
Lets have a look how that activity looks like.
👉 Below there is a running program which you can implement and edit in your own style.