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. Trying to start a thread dedicated to sending and receiving data

I think you're doing it the hard way, but maybe that's on purpose. The easy
way is to use UrlConnection instead of sockets and use AsyncTask instead of
creating threads by hand. AsyncTask uses a thread pool and makes it really
easy to hook up actions and responses with the UI. Trying to get a response
back to the UI from a non-UI thread is a well-known headache for Anfroid
programmers.




> 

2. lock_layer

Hi

when i type continuously in the browser's search bar, I  keep getting
those
"lock_layer timed out messages" and the browser hangs.

please help me in understanding why these "lock_layer timed out"
messages keep coming and what is the possible solution to this issue.



Regards,
Manjunath

-- 

3. O2 Joggler

4. Mod: Gathering Id-Android with Sony Ericsson Indonesia

5. Gesture

6. Spica EXXJCE atau lkMod Aneh ???

7. Perdana XL Unlimited 150rb/