Sunday, October 9, 2011

[android-developers] How to display search button in actionbar on tablet (app minSdk = 8)

Hi guys,
I just (late and fairly stupidly) realised that one of the big
differences of Honeycomb is the lack of "always there standard
buttons" (home, back, search, menu).

Home seems to be there all the time, as well as back (at least it is
for my app).

I found out how to get my menu back (target a SDK below 11), but I
have been Googling for last 3 hours in order to discover how to get a
search button in the action bar and I failed...

So to make sure things are in perspective:
- my app min SDK is 8;
- I'd like to have the same code accross the board
- I am using search to trigger a custom action in a custom activity
(still like a search, but not really a search).
- furthermore I am using long press on serach as well.

How can I have that on tablets whithout ruining the "other users"
experience or write a specific SDK 11+ version.

Many thanks,
JM

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate