3

Is there an easy way to make the search view open to the top action bar but keep the iconified search view on the bottom action bar when using a split action bar? Google Mail as well as Google Maps seem to do this. Do you have to manually hide and show the items or is there a way to tell the system do that automatically?

enter image description here

enter image description here

Juhani
  • 5,076
  • 5
  • 33
  • 35
  • 1
    What evidence do you have that the magnifying glass on the bottom action bar is an iconified search view, versus just a regular action item? I would assume that it's a regular action item, triggering adding the search view as a custom view to the main action bar when clicked. – CommonsWare Jun 05 '13 at 10:45
  • Absolutely no evidence. That's why I'm asking here. I'm hoping I wouldn't have to do it manually and that there would be a flag that I've just missed. – Juhani Jun 05 '13 at 10:49
  • 1
    Ah, OK. Have you run **`uiautomatorviewer`**, to see if it is a `SearchView`, either iconified or expanded? This is Google; they certainly roll their own widgets from time to time. – CommonsWare Jun 05 '13 at 10:56
  • 2
    That's the normal behaviour when using the SearchView with splitActionBarWhenNarrow. Expansion of expandable Actionviews always takes place at the top. As soon as the expanded ActionView is visible the icons in the split actionbar disappear. – Wolfram Rittmeyer Jun 05 '13 at 19:37

0 Answers0