Join David Gassner for an in-depth discussion in this video Displaying data with a ListView, part of Building a Note-Taking App for Android.
- When the app is complete the database will be accessed…through a Loader object.…But, before I get to that I'm going to implement…the User Interface that displays the notes in a list.…I'm working in a version of the project now named ListView…that picks up where the last project left off.…And, in the MainActivity I'll jump to the Activity Layout,…ActivityMain.xml.…The default layout has a TextView object…that displays the text "Hello world!"…I'm going to click into that string and show…that it's a resource and then I'll Control or Command click…to jump to the resource definition in Strings.xml.…
And, I'll delete that string resource.…Then, I'll come back to ActivityMain…and I'll also delete the TextView object.…Next, I'll add a ListView object to display my data.…I'll start with the ListView element and when prompted…for the width and the height…I'll set them both to match_parent.…I'll get rid of the end tag and replace it…with empty tag syntax.…And then, I'll assign an id to the ListView object.…
The id will be Android:list,…
Building a Note-Taking App for iOS 8 and Building a Note-Taking App for Windows Phone 8 and Windows Store use the same assets to develop a similar app. Compare and contrast the steps and discover the similarities and differences between the three platforms.
- Understanding Android UI and data management patterns
- Creating an Android Studio project
- Customizing material design theme colors
- Defining an SQLite database structure
- Managing data with ContentProvider and Loader classes
- Retrieving and displaying data
- Customizing data display with a CursorAdapter
- Creating, updating, and deleting notes
- Preparing the app for deployment