I am looking for a example how to add spinner Item with an array of items to Android Menu Options .
I look many examples but there is not any simple example i can fine .I want to add an item to Action Bar on Top of screen.
All action buttons and other items available in the action overflow are defined in an XML menu resource. To add actions to the action bar, create a new XML file in your project's res/menu/ directory. The app:showAsAction attribute specifies whether the action should be shown as a button on the app bar.
Its really easy, You get the option at the beginning when you make a new project.
Look at my attached image, and you will get more idea.
Like my answer, if it helps you.
Thank you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With