Join David Gassner for an in-depth discussion in this video Creating an action bar command item, part of Building a Note-Taking App for Android (2013).
We've created our screen definitions, and now it's time to add a user interface for…navigation. The first step is to add an icon that lets…the user indicate that they want to create a new note.…On newer devices, I'll do this with the Action bar.…The Action bar was introduced in Honeycomb, Android 3.…And it's a way of adding command icons to the top of the application next to the…name of the application and the launcher icon.…I'm working in a version of the application called Action bar.…
And I'll start by creating a new graphical icon to use in the Action bar.…I'll go back to the Android Asset Studio, and this time, I'll click on Action bar…and Tab Icons. I'm going to once again use clipart to…create my icons. You could create your own images if you…prefer. I'll click the clipart section, and I'll…scroll down till I find the plus icon. This is clearly an indicator that I want…to create something new. I'll select the item, and I'll scroll down…a little bit further. I'll set the name of the icon to…create_note. The help text on the left indicates that…
Like its companions, this course will take you through building a complete mobile app from scratch; but this installment uses the Android SDK and Java to get the job done. Author David Gassner shows you how to install the SDK and the Android Developer Toolkit, create a project, save data on a device, build and control screen layouts, and create action bars and icons that control navigation.
These three related courses will use the same assets to develop the same app. (See Building a Note-Taking App for iOS and Building a Note-Taking App for Windows Phone 8 and Windows Store for more information.) Compare and contrast the different steps and discover the similarities and differences!
- Previewing the note-taking app
- Creating virtual devices for testing
- Unique concepts in Android
- Creating the Eclipse project
- Using local data storage
- Adding and retrieving data with the Shared Preferences API
- Creating screen designs
- Creating and editing notes
- Supporting older versions of Android with ActionBarSherlock