shivanibansal / TwitterClient_Proj_03

Twitter Client (Week 3 Project
0 stars 0 forks source link

Issues in Twitter client #1

Open shivanibansal opened 10 years ago

shivanibansal commented 10 years ago

Hi Nathan @nesquena @thecodepath Hope your are doing good. As always, need your guidance on following stuff. Yesterday, I got stuck in those. Please provide me your feedback, i will try to incorporate those by today evening.

  1. As per mocks, need to display user screenname on compose activity. I tried in twitter client but had a hard luck. Could you please let me know what i was doing wrong. https://github.com/shivanibansal/TwitterClient_Proj_03/blob/master/src/com/yahoo/bshivani/basictwitter/TwitterClient.java#L59
  2. Menu Item on compose activity : I am calculating number of character which user can still type or over typed. Number of over typed characters are displayed in negative number. Would like to show those negative number in RED color. For that i used SpannedString. Please provide me your feedback. https://github.com/shivanibansal/TwitterClient_Proj_03/blob/master/src/com/yahoo/bshivani/basictwitter/ComposeActivity.java#L52
  3. On Main activity, i am displaying Relative time. But relative time is displayed as "in 2 min ago, 2:30". how to get rid of time after relative time. https://github.com/shivanibansal/TwitterClient_Proj_03/blob/master/src/com/yahoo/bshivani/basictwitter/adapters/TweetAdapter.java#L45 https://github.com/shivanibansal/TwitterClient_Proj_03/blob/master/src/com/yahoo/bshivani/basictwitter/utils/UtilsClass.java#L12

Please help me in learning this. Thanks Shivani

nesquena commented 10 years ago

As per mocks, need to display user screenname on compose activity. I tried in twitter client but had a hard luck. Could you please let me know what i was doing wrong.

Use this endpoint instead and let me know if it works better.

Menu Item on compose activity : I am calculating number of character which user can still type or over typed. Number of over typed characters are displayed in negative number. Would like to show those negative number in RED color. For that i used SpannedString. Please provide me your feedback.

Yep looks good!

On Main activity, i am displaying Relative time. But relative time is displayed as "in 2 min ago, 2:30". how to get rid of time after relative time.

Check out Tip #6 here and let me know if it helps.

shivanibansal commented 10 years ago

Thanks Nathan for feedback. but for #2, I am not able to change color of menu item in Action bar. I googled it and see people used SpannedString. Could you please let me know what i am doing wrong

nesquena commented 10 years ago

Ahh, best way to do this to learn the most is to use a special custom action item which uses an XML template. In short, create an XML template for the TextView and then use a custom action item layout. Then simply change the textcolor of the TextView!

shivanibansal commented 10 years ago

Thanks Nathan !