Well, it’s sort of about context menus but different.
It’s all about using the contextual action mode. This lets the user do stuff with the items that they have selected.
Enabling the contextual action mode, displays a Contextual Action Bar at the top of the screen. You can then place action items, which are like menu options, on this bar.
The user selects items from a list for example, chooses an action item and the action linked to that action item is performed on all of the selected items.
Say you had a list of countries and you want the user to be able to select a couple of them to add to a database. This is where you could use the contextual action mode.
It enables the user to select one or more of the countries in the list. They can then select a Save action item, for example, and all the selected country items will be saved in the database.
We’ll show you how to:
Android Fragments, Action Bar, Menus, Notifications and Tabs, aimed at the beginner Android developer, gives a detailed overview of these concepts and then shows you how they are applied in a fully functional application. Each concept is discussed in detail, using example code from the app, making it very easy to understand.
Learn how to use fragments in your applications, enabling your app to run flawlessly on large tablets and smaller mobile phones. Master using the Action Bar, menus, and navigation tabs. See how easy it is to send notifications, including the large picture and text notifications made possible in Jelly Bean.
What about Contextual Action Modes, popups, drop-down lists, Action Items and Custom Views? No problem, you’ll master them too!
Download the project files for free from the author’s website (www.101apps.co.za)! The application targets Jelly Bean and can run on Ice Cream Sandwich.