david2 wrote:
> Hello,
> I'm planning to create a custom control and define some custom
> attributes to be specified in XML layouts when using the custom view.
> 
> The Android article, 
> http://developer.android.com/guide/topics/ui/custom-components.html,
> Building Custom Components says at the end,
> "Note that it is possible to add your own parameters as well, and we
> will touch on this again below."
> 
> But thats at the end of the file and they never touch on it again.
> I've tried modifying the example in ApiDemos, LabelView. They define a
> app: namespace. But it apparently knows what attributes are allowed. I
> tried adding my own attribute and it complains, "No resource
> indentifier found for attribute xxx in package
> com.example.android.apis"

You should see a res/values/attrs.xml file where they define the
attributes that wind up being used in the app: namespace.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to