Join David Gassner for an in-depth discussion in this video Creating screen designs with layouts and activities, part of Building a Note-Taking App for Android (2013).
As you get ready to build a user interface for an Android app, it's important to know…some basic concepts. Each Android application has at least one…screen. And depending on its complexity, it can…have as many screens as are needed. Each screen needs two elements.…First, an activity, which is a Java class, and then a definition of the screen…layout. A screen layout could be very simple, and…be just a container into which you add your own components at runtime, or it…could define everything that the user sees.…
To create a screen layout, you'll create an XML file.…Each app can have as many layout files as are needed.…And a single screen can either be built from a single layout file, from multiple…layout files, sometimes known as fragments.…Or can choose between layout files at runtime.…All layout files have .xml extensions. And are placed in a layout folder, which…is under a folder called res for resources.…You can create your layout files using pure XML, or you can use the design tools…that are included in the Android Developer Tools or ADT.…
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