Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Spinner To Action Menu Bar

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.

like image 500
user2718771 Avatar asked Oct 07 '13 00:10

user2718771


People also ask

How do I add items to Action Bar?

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.


1 Answers

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

enter image description here

like image 196
Dushyant Patel Avatar answered Oct 05 '22 12:10

Dushyant Patel