Open source (GUI) libs ???

6 views
Skip to first unread message

JensRiboe

unread,
Dec 29, 2009, 12:32:32 PM12/29/09
to cw-android
Does anybody know of any Android open source libs - I mean; besides of
developer.android.com?
I have been googling around, without anything useful turning up.

I'm primarily looking for more GUI widgets besides the ones found in
android.widget.*.

One specific GUI widget is the number-picker widget used in HTC Sense,
when setting the alarm clock. Something similar would be useful. I
have played with ripping out the internal NumberPicker from TimePicker
and DatePicker, but of course it's far from so nice-looking as the HTC
counter part.

However, other Android oriented libs are of interest as well. Perhaps
there is a site that over time might be the Android equivalent of
Jakarta (Commons).

Cheers /jens

Mark Murphy

unread,
Dec 29, 2009, 1:01:36 PM12/29/09
to cw-an...@googlegroups.com

This list is for support on the CommonsWare line of books, sample code,
and open source stuff. General Android questions really need to go on
StackOverflow (for programming Q&A) or one of the official Android
Google Groups.

The reason I have not released any open source widgets is because it is
presently impractical. JARs cannot contain Android resources, and you
need Android resources to make a useful open source widget (e.g.,
attrs.xml). Hence, open source widgets cannot simply be a JAR -- it'd
have to be a JAR-plus-something, and there are no standards or tools
today to support deploying open source widgets as a JAR-plus-something.

Cooking up something to support that is on my 18-million-item to-do
list. If somebody has a hankerin' to tackle it, I was thinking we could
pattern something off of Rails vendor plugins or the like, using naming
conventions to help deal with the fact that we can't have subdirectories
in our resources directories (grrrr...).

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

JensRiboe

unread,
Dec 29, 2009, 1:38:27 PM12/29/09
to cw-android
> This list is for support on the CommonsWare line of books, sample code,
> and open source stuff. General Android questions really need to go on
> StackOverflow (for programming Q&A) or one of the official Android
> Google Groups.
Your are right, sorry for that.

Actually, I found one such site: http://www.openintents.org/en/intentstable

> .... Hence, open source widgets cannot simply be a JAR -- it'd


> have to be a JAR-plus-something, and there are no standards or tools
> today to support deploying open source widgets as a JAR-plus-something.

Hmm, interesting.
I'm still new to Android programming (and btw, still reading your
excellent book [dev]).

> .... If somebody has a hankerin' to tackle it, I was thinking we could
How about:
* a JAR unpacker tool that merge the classes and resources from the
3rd party into the classes/res/assest dirs before packing the app
* uses of domain name style IDs, e.g.,
com_commonsware_gui_FooBarWidget_label

Such an unpacker could be part of an Ant or Maven build. It remains to
figure out how the lib would be picked up by IDEA or Eclipse.

Cheers /jens

Reply all
Reply to author
Forward
0 new messages