outofjungle / Quack

A simple twitter client
0 stars 0 forks source link

Week 4: Twitter App Client w/ Fragments #2

Open outofjungle opened 10 years ago

outofjungle commented 10 years ago

/cc @nesquena @timothy1ee, please review my week 4 homework.

I did not complete "User can click on the profile image in a tweet to see that user's profile", even though I tried to make it work for a bit. I was not sure how to get the user object from the adapter and open an intent. Please link me with an example or tutorial for how to handle an onClick action on an item of a view.

Thanks ven@yahoo-inc.com

nesquena commented 10 years ago

:+1: Project looks good. I have provided a detailed Project 4 Feedback Guide here which covers the most common issues with this submitted project. Read through the feedback guide point-by-point to determine how you might be able to improve your submission.

Let us know if you have any other thoughts or questions about this assignment. Hopefully you can see this coming together as a "fully fledged" twitter client with some more work and polish. This app contains all of the components now (fragments, models, networking, client, tab navigation, image loading, et al) of 90% of dynamic data-driven API client. Obviously there are lots of details and patterns to learn, but by this point you have been introduced to all the major frameworks and concepts. Hopefully you would feel fairly confident getting started making Android apps for instagram, pinterest, yardsale, flickr, using the same patterns.

I was not sure how to get the user object from the adapter and open an intent. Please link me with an example or tutorial for how to handle an onClick action on an item of a view.

You want to use setTag on the ImageView in the adapter to store the username of the user and then setup an onclick handler within the adapter imageView.setOnClickListener(...) and then use v.getTag() to retrieve the correct username.