dipTech / AndroidDev

code path android dev
Other
0 stars 0 forks source link

Week 4 Project: Twitter with Fragments #6

Open dipankar14 opened 10 years ago

dipankar14 commented 10 years ago

@nesquena @timothy1ee

Twitter Client folder: https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline

Readme: https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline/TwitterTimelineReadme.md

vibhorB commented 10 years ago

@dipankar14 Pls complete the required stories ASAP and update the status here.

Thanks Vibhor , @nesquena

dipankar14 commented 10 years ago

@nesquena @timothy1ee

I added the following, followers and tweet on the clicked user and also corrected the time shown on the homepage (which was zero in previous submission). Network connection is shown on previous assignment so not shown here. So mandatory list is done.

vibhorB commented 10 years ago

@dipankar14 I am not able to find the following required story in GIF or code -

If you have done this already, pls update GIF and point me to the code where this is implemented.

Thanks Vibhor, @nesquena

dipankar14 commented 10 years ago

Gif is in this url https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline/TwitterTimelineReadme.md

Filename : TwitterTimeline1.gif Location: https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline

It is from https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline/src/com/codepath/apps/basictwitter/fragments/TweetsListFragment.java when anywhere in the item is clicked it should call the code lvTweets.setOnItemClickListener(new OnItemClickListener() at line no. 92 and then details are set in TweetDetailActivity at line 72

    tvretweets.setText(TweetUtility.formatForDisplay(result.getRetweet_count()));
    tvfavorites.setText(TweetUtility.formatForDisplay(result.getUser().getFavourites_count()));
    tvfollowers.setText(TweetUtility.formatForDisplay(result.getUser().getFollowers_count()));
dipankar14 commented 10 years ago

@nesquena @timothy1ee

Please ignore my previous comment. I changed the code to reflect the fragment data for the profile. Gif is in this url https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline/TwitterTimelineReadme.md

Filename : TwitterTimeline2.gif Location: https://github.com/dipTech/AndroidDev/tree/master/DipTwitterTimeline

Filename : TwitterTimeline.gif is there for yesterday's detail about tweet and other features. Today's gif is showing just the timeline working with profile picture and user profile icon on action bar.

Now the code is in res/layout/activity_profile fragment part at the end <fragment android:id="@+id/fragment1" android:name="com.codepath.apps.basictwitter.fragments.UserTimelineFragment" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/llStats" android:layout_marginTop="17dp" tools:layout="@layout/fragment_tweets_list" />

java code: UserTimelineFragment.populateTimeline() and UserTimelineFragment.populateTimeline(User user)

TwitterClient.userTimeline and ProfileActivity.onCreate to initiate and call to usrTimeLineFrag.populateTimeline();

Hopefully, this is what you are looking for. Code is totally messed up, need to remove lot of junk code.

Thanks Dipankar

vibhorB commented 10 years ago

:+1: nice work Dipankar. A few notes after checking out the code:

Here's 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.

This week (Week 5), we are going to cover the last major piece to the Android puzzle and that is using the hardware and SDK components such as the camera, photo gallery, location, maps, etc. After that, Week 6 and week 7 we will be covering a few important intermediate topics such as more about styling and animation as well as testing.

Following the bootcamp, we are going to have a demo day to celebrate the progress you've all made with our next batch of Android students and multiple companies attending to see the group projects that you all have built. We are going to help however we can over the next few weeks to get the team project apps in shape for that.