Exploring the Master-Detail Template

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.

Extra Credit

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.