Exploring the Master-Detail Template
Included in Eclipse are a few Android project templates that can help us get started quickly with certain types of apps. In this stage we'll learn how the Master-Detail Template works, and we'll talk about the Model-View-Controller design pattern that is behind many Android applications.
5 videos • 2 quizzes • 3 code challenges
-
Play
Watch
Blog Reader Project Overview
2 minutes 22 seconds
-
Code Challenge
Take Challenge
Code Challenge: Blog Reader Project Overview
4 objectives
-
Play
Watch
Creating a Project Using the Master-Detail Template
8 minutes 3 seconds
-
ABC
Take Quiz
Quiz: Creating a Project Using the Master-Detail Template
5 questions
-
Play
Watch
The Model-View-Controller (MVC) Design Pattern
5 minutes 35 seconds
-
ABC
Take Quiz
Quiz: The Model-View-Controller (MVC) Design Pattern
8 questions
-
Play
Watch
Exploring the Master-Detail Template
6 minutes 11 seconds
-
Code Challenge
Take Challenge
Code Challenge: Exploring the Master-Detail Template
2 objectives
-
Play
Watch
Adding More Test Data
7 minutes 6 seconds
-
Code Challenge
Take Challenge
Code Challenge: Adding More Test Data
2 objectives
Try the Templates!
Create a sample project using each template available in Eclipse. Try them out and see if you can customize labels, sample data, etc.
List Item Customization
The detail items in the Master-Detail template are configured using the fragment_post_detail.xml file. Add another TextView to this file that displays mItem.content in addition to mItem.description. Hint: You'll need to add another line similar to the existing one inside the onCreateView() method in BlogPostDetailFragment.java.