Hi, Following this topic, if i customized a view in "A" application, and want to re-use this view in other "B" or "C"... apps. As i know the resource ( the default background image or string in custom view ) can't be used in other apps. Advanced, if i want to release this view to other android platform, how to deal this case?
Best regards On 8月31日, 上午6時14分, Mark Murphy <mmur...@commonsware.com> wrote: > 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-tutoria... > > (there's a few more posts in the series) > > and this: > > http://www.curious-creature.org/2009/03/01/android-layout-tricks-3-op... > > (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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---