I’m looking to copy the action bar implementation from the gmail app in Honeycomb
Unfortunately I can’t post an image because I’m new here.
Basically, when you select an email or more your action bar animates into a different action bar with:
1.Contextual buttons
2.A new “Done” button appears over the Home icon.
Does anyone have any idea how to do this?
Call the
startActionModemethod available on any View or your Activity. This method accepts anActionMode.Callbackobject that will manage the lifecycle of the contextual mode.startActionModewill return anActionModeobject if starting the mode was successful, ornullif the request was rejected.If you are specifically creating a multiple selection mode for a ListView, you can take a shortcut and use
CHOICE_MODE_MULTIPLE_MODAL.