Alias custom view path in XML

by Ward Willats » Tue, 24 Mar 2009 22:42:16 GMT


Sponsored Links
 Is there a way to alias the path to my custom view class (perhaps in 
its <styleable>) so I can say

<MyGreatView>

in the XML, instead of

<com.myco.myapps.MyGreatView>

(I played around with the months ago, namespaces and what-not, but 
never found a solution.)

Just a "nice to have" thing.

Thanks

-- Ward

--~--~---------~--~----~------------~-------~--~----~



Alias custom view path in XML

by Mark Murphy » Tue, 24 Mar 2009 22:50:35 GMT


 


Not that I'm aware of. Otherwise, I would have expected Google to avail
itself of the technique with MapView. Right now, we have to spell out
the whole fully-qualified class name when putting MapView in our layouts
(unless something changed on that front that I missed).

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Alias custom view path in XML

by mawei1981 » Sat, 11 Apr 2009 00:52:26 GMT


 I like the full namespace, so I can find my custom component easy and
clear.








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. using API

Hi... Can anyone plz help me in using API in android. I want to
implement a ebay All category API on my android emulator.

Any help will be appreciated.

Thanks

Jimmy.

-- 

2. Enabling code for earlier OS versions under the 2.1 SDK?




Yes, this has been discussed at length in these groups. Search for
"reflection" in the group and you'll find plenty on the topic.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

3. In which case should i use content provider?

4. GL11Ext.glCurrentPaletteMatrixOES problem

5. Order Request ..

6. phone-as-client Socket connections time out in 3GS mode, but work fine in wifi

7. Trying to handle mime type - not working