Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Blog Reader Android App Exploring the Master-Detail Template Adding More Test Data

What's the difference between ListActivity, ListFragment, DetailActivity & DetailFragment?

I'm really confused as to what each of these four individual files (BlogPostListActivity, BlogPostListFragment, BlogPostDetailActivity & BlogpostDetailFragment) actually do?

It would be great if someone could explain this to me.

Thank You

3 Answers

Harry James
Harry James
14,780 Points

Hello,

I will explain the 4 files below:

  • BlogPostListActivity --> This activity which will link to the fragment below \/
  • BlogPostListFragment --> This is where the blog posts are displayed.
  • BlogPostDetailActivity --> This activity will link to the fragment below \/
  • BlogPostDetailFragment --> This is where the actual blog post itself is displayed.

Hope it helps!

Thanks Harry it really helped!. Does 'V' mean view here?

I think the V is being used as an arrow in this instance.

Harry James
Harry James
14,780 Points

Ah, yes. I didn't see this reply. Sorry!

Laura Bailey is right here, the V is simply being used as a down arrow :)