17.03.2011 20:02, TreKing ?????:
I don't think you add the xmlns declaration to your custom view.
That's for Android defined views.
The repeated xmlns:android is unnecessary, but harmless.
A custom view needs to use a full-qualified class name, either in the
start tag, like this:
<*it.andrea.richiardi.myapp.*ViewClass
or like this:
<view class="*it.andrea.richiardi.myapp.*ViewClass"....
Just using this:
<ViewClass...
doesn't work (probably tries to instantiate android.widget.ViewClass and
fails).
Have you read this:
http://developer.android.com/guide/topics/ui/custom-components.html#modifying ?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
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