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

Hasan Nagaria
Hasan Nagaria
4,855 Points

Social Network Layout question

Alright, so I have been following the android track. At the moment Im going through the out dated snapchat type project because theres a lot of things from it that I can learn for a personal project of mine.

So heres my question. Im working on a social networking app and as is the case with other apps, after logging in I want my user to go to some sort of a home page where he can see the recent activity of all his/her friends.

I have been reading up and doing some practice with fragments as well as the viewpager class discussed in the project on treehouse. Basically, I need help on the thought process on how I would display the data?

I mean, sure Ill be fetching it off some sort of web database like parse, but how would go about encapsulating all the things regarding the user, for example how would facebook do that? Like, a user post, his picture. Would I encapsulate all that in some sort of a struct and pump that struct into some sort of fragment? Would I have to use the list class?