rahulsv / TwitterClient

0 stars 0 forks source link

Completed the video follow up of Twitter client - Need some pointers to complete the assignment #2

Open rahulsv opened 11 years ago

rahulsv commented 11 years ago

I completed the video follow up. Checked in. It does show the profile as expected. I added a few buttons to take the user back to timeline page.

Can you give me some pointers to how to go about making an image clickable. Also don't know if I need authentication to get a user's profile information.

Thanks.

Rahul Vadodkar /cc @nesquena @timothy1ee

nesquena commented 11 years ago

I completed the video follow up. Checked in. It does show the profile as expected. I added a few buttons to take the user back to timeline page.

Great, yeah that part looks good.

Can you give me some pointers to how to go about making an image clickable. Also don't know if I need authentication to get a user's profile information.

To get any user's basic profile info, you just need to use this endpoint: https://dev.twitter.com/docs/api/1.1/get/users/show to retrieve the data. Don't need any special authentication.

Also, to make the ImageView clickable, just attach a click handler, no different from handling the click of a button. It works the same way via adding onClick in XML or use imageView.setOnClickListener(...) as you would with a button.