Context action bar in cells

I want to change the Action Bar buttons in the code according to what is selected on the screen.

This is similar to the Honeycomb Gmail application, where you can check multiple mail items and get a different action bar with a different look.

Any idea how I can do this?

+5
source share
1 answer

To get an action bar item, use the getActionBar () method within the action. When you have an item ActionBar, you can add and remove tabs using methods from the ActionBar class .

setCustomView() setDisplayOptions() , .

, . (onCreateOptionsMenu() menu) 3.0. .

+3

All Articles