I would like to use the Spinner as view-switching controller at Action Bar in my Android app, just like the native mail app (see part #2 at Android Common App UI).
So far I have managed putting the Spinner in the action bar and populating it with array of strings (see screen shot here) by looking at the example code at Android Developers.
My questions are:
- How can I hide the activity name "MyAcitivity" from the action bar so the Spinner gets more place?
- How can I make Spinner displaying two lines, one for the title and other for subtitle? Just like in the native mail app.
- Why is the item text in the Spinner black and not white as the rest of the text in action bar?
I'm developing for Android version 4.0 and later.