2

I want to put image to action bar list like Path app does:

enter image description here

Any ideas how to do this?

0

2 Answers 2

0

The Spinner in the action bar is no different than any other Spinner that exists in your layouts. The adapter that you give it, an instance of SpinnerAdapter, has two callbacks methods: one for the layout used in the drop-down list and one which is used for the selected item layout.

Knowing this, it's likely they use the same layout for the selected item layout which simply shows their logo whereas they retain the normal drop-down layout for displaying the navigation items.

0

There are three images in that action bar. The two right ones are standard action items (<item> in menu resource with android:showAsAction set to something like ifRoom). The left one is probably a logo (android:logo in manifest), turn on via setDisplayUseLogoEnabled() on ActionBar.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.