News for hackers. Stuff that matters.
Re:Twitter: It's time to open source your Android app by king_magic on Thursday December 15, 2011 @09:38AM (#3356271)
I see no reason why Twitter should open source their app. They have absolutely no obligation to, and IMO, should not be pressured to do so just because some blogger feels that " there is an increasing divide between the UI patterns in their Android app versus the UI patterns that most developers work with".

The author says: "And lastly, Twitter should release this app because they said they would.".

Well, here is the statement from Twitter:

"We had a great time working with the Android team and are thrilled that Google will be open sourcing the code used in this app in the near future."

Saying Google will open source the code used in this app is completely different from saying "we ourselves will open source this app". It almost certainly means that Google will open source some small component that is used in the app. IMO, it is a bit of a leap to interpret that statement as saying "Twitter will open source the app".

IMO, in the absence of a more complete statement from Twitter regarding open sourcing their app, it is dishonest of the blogger to say Twitter "has no interest in making good on their word" when it seems like the blogger is putting words in Twitter's mouth. If a more explicit statement exists from Twitter, then the blogger should have cited that, instead of the slightly-but-not-really-ambiguous statement from Twitter that he used.

Re:Twitter: It's time to open source your Android app by chuinard on Thursday December 15, 2011 @09:45AM (#3356301)
From what I've read, they have said it a few times.

http://stackoverflow.com/questions/4014426/twitter-android-a...

http://stackoverflow.com/questions/3413980/android-twitter-a...

Twitter has a solid collection of open source stuff on GitHub, i.e. the Twitter Bootstrap. Sure, maybe they don't have to release the ENTIRE app, but it would be ideal if they could contribute some of their work (such as the UI patterns) back to the community.

Re:Twitter: It's time to open source your Android app by king_magic on Thursday December 15, 2011 @09:51AM (#3356325)
I've searched for more info on this, and each time it comes back to that one quote I posted. That quote, IMO, absolutely is not saying Twitter will open source their app. It sounds to me like they were saying Google would open source some code used in the app.

Maybe I'm missing something, but I really do not see that quote the same way the OP does.

Re:Twitter: It's time to open source your Android app by chuinard on Thursday December 15, 2011 @09:58AM (#3356359)
If I changed the words from 'said they would' to 'said it would be', would that be satisfactory?
Re:Twitter: It's time to open source your Android app by king_magic on Thursday December 15, 2011 @10:08AM (#3356412)
No, I don't think so. If Twitter's statement changed from this:

"We had a great time working with the Android team and are thrilled that Google will be open sourcing the code used in this app in the near future."

To this:

"We had a great time working with the Android team and are thrilled that we will be open sourcing this app in the near future."

Then I would have been convinced.

Re:Twitter: It's time to open source your Android app by fizguerra on Thursday December 15, 2011 @11:34AM (#3356786)
I would be satisfied.
Re:Twitter: It's time to open source your Android app by adestefan on Thursday December 15, 2011 @11:58AM (#3356879)
So the argument is basically, "I want my app to look like yours; so open source it for me to steal the layout." Is this really how people write software these days?
Re:Twitter: It's time to open source your Android app by speakbin on Thursday December 15, 2011 @12:01PM (#3356900)
It's better for the overall ecosystem. Higher quality apps means more time spent on your phone. If we can't duplicate the features of the app that aren't domain-specific, it results in an overall worse feel for the end user.
Re:Twitter: It's time to open source your Android app by nekgrim on Thursday December 15, 2011 @09:48AM (#3356317)
"You'll notice that Twitter is no longer using the standard Android ListActivity. There is a slight border around this list right now, which is VERY new to Android apps."

A ListView with some layout_margin ? Am I missing something special ?

Re:Twitter: It's time to open source your Android app by nutjob123 on Thursday December 15, 2011 @10:36AM (#3356524)
Yeah i can think of a number of ways to do this with padding or layout margins and then setting a shape drawable or 9 patch for as the backround of the list or its container. In fact i just checked and i have done this for a couple published apps. The pull to refresh feature is interesting. I would be tempted to mess with the sliding door class for a solution.
Re:Twitter: It's time to open source your Android app by RobAtticus on Thursday December 15, 2011 @11:28AM (#3356752)
I don't see it either. There is nothing in that layout that I don't know how to implement, so unless I'm missing something more subtle, I don't think it's anything new.
Re:Twitter: It's time to open source your Android app by chuinard on Thursday December 15, 2011 @09:51AM (#3356326)
I always felt the ListView needed to expand the screen. I could be wrong though, this might just be a layout_marginLeft or layout_paddingLeft attribute. Either way, it is a very new pattern for Android apps. You'll also notice the rounded corners, which I don't think come naturally with a ListView margin.
Re:Twitter: It's time to open source your Android app by nekgrim on Thursday December 15, 2011 @09:58AM (#3356352)
I've made this app : https://market.android.com/details?id=com.cardiweb.carrefour... See the third screenshot : https://lh6.ggpht.com/FOyDJtPGapRpBk0zSpFcXVUu45zHEY5OTaHfto...

The list at the bottom is just a RelativeLayout, with some rounded corners. Wrap this in a ScrollView, and voila.

See http://developer.android.com/guide/topics/resources/drawable...

Re:Twitter: It's time to open source your Android app by estel on Thursday December 15, 2011 @10:36AM (#3356523)
I've seen it a few times (though I can't recall any examples immediately) in the market, and implemented it once or twice.

Usually it's in apps that are ported from iOS with minimal consideration for Android user interface expectations, because it's a much more standard design pattern there.

Re:Twitter: It's time to open source your Android app by nt_mark on Thursday December 15, 2011 @09:52AM (#3356333)
Re:Twitter: It's time to open source your Android app by Pewpewarrows on Thursday December 15, 2011 @11:34AM (#3356790)
I'm sure that's how you'd go about doing it using ListView. But isn't the new Twitter app just a wrapper around their mobile browser UI?
Re:Twitter: It's time to open source your Android app by jc4p on Thursday December 15, 2011 @12:36PM (#3357046)
I understand that Twitter said they were going to open source their application a very long time ago, but I've found that if I am interested on how they do anything the folks on the official Android irc channel are very helpful. Their initial version of the application used the dashboard interface that google revealed as the future of Android UI but there was absolutely no example code on how to do it until the recent Google I/O application that was open sourced. The people on the IRC channel helped me replicate that very quickly.

If you were angry enough to write a blog post, you could've also looked into decompiling the code and seeing how they do it yourself. If you use dex2jar:

http://code.google.com/p/dex2jar/

you can see that the view you're discussing is a custom ListView they made called RefreshableListView which actually does extend ListView so it is technically a ListView.

Re:Twitter: It's time to open source your Android app by lnanek on Thursday December 15, 2011 @12:25PM (#3357000)
Hasn't Twitter straight out requested that people not develop more clients? Example article: http://www.readwriteweb.com/archives/twitter_tells_developer...

Open sourcing it would just help people to publish slightly different versions with little effort - which is what they say they don't want...

Re:Twitter: It's time to open source your Android app by nt_mark on Thursday December 15, 2011 @09:42AM (#3356289)
I haven't checked this out, all I'm saying is it looks a LOT like http://mobile.twitter.com. Same border, same pull down to refresh. Mobile web FTW.
Re:Twitter: It's time to open source your Android app by alimbada on Thursday December 15, 2011 @09:40AM (#3356282)
Most of Facebook's Android app is just a web view as is their iPad app and probably their iPhone app too. I wouldn't be surprised if the Twitter Android app is also a web view.
Re:Twitter: It's time to open source your Android app by adelevie on Thursday December 15, 2011 @09:41AM (#3356285)
The Facebook app for Android does a decent job with pull to refresh.
Re:Twitter: It's time to open source your Android app by outside1234 on Thursday December 15, 2011 @10:44AM (#3356564)
Warning: the "pull to update" feature is patented by Apple.
Re:Twitter: It's time to open source your Android app by martingordon on Thursday December 15, 2011 @11:36AM (#3356796)
This is simply not true.

Pull to Refresh was invented by Loren Brichter, author of the Tweetie app for iPhone, and he filed a patent for it (http://gorumors.com/twitter-patent-drag-to-refresh/2754292). As the article states, the patent application was submitted the day before Tweetie was acquired by Twitter, so we don't know for sure if Loren or Twitter own it, but it sure isn't Apple.

Re:Twitter: It's time to open source your Android app by thetrendycyborg on Thursday December 15, 2011 @11:35AM (#3356791)
the "pull to update" pattern was invented by the maker of the Tweetie app, who was hired by Twitter.
Re:Twitter: It's time to open source your Android app by sootzoo on Thursday December 15, 2011 @11:15AM (#3356702)
which hasn't stopped anyone from using it in their own apps anyway (e.g. Facebook)