Daber wrote:
> Does anybody knows if (and how ) I can write a custom view/widget and
> then use it in resources in layout defintions?

In terms of "if", yes, it is very doable.

In terms of "how", I suspect there is at least one of the API demos on
the subject, though I can't remember which one off the top of my head.

Here's one blog post series I found in a Google Search:

http://whyandroid.com/android/tutorial/43-tutorial/93-android-tutorial-41-image-and-text-only-buttons.html

(there's a few more posts in the series)

and this:

http://www.curious-creature.org/2009/03/01/android-layout-tricks-3-optimize-part-1/

(doesn't discuss techniques, but the one example project has a custom
widget)

It's covered in some of the Android books, including (*cough*) two of mine.

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

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to