[android-developers] what are the restrictions on the declare-styleable name attribute? (Does it allow sub packages?)
what happens if I have two custom views
com.mycompany.projectname.CustomView
com.mycompany.projectname.subpkg.CustomView
How do I declare styleable resoruce for these classes? (of course I
can name them differently, but is that the only way?)
Here is an example
<resources>
<declare-styleable name="CustomView">
.....
</declare-styleable>
</resources>
would I then do for the second sub package custom view?
<resources>
<declare-styleable name="subpkg.CustomView">
.....
</declare-styleable>
</resources>
If so how does the constant
R.styleable.CustomView
look for the sub pakcage "subpkg.CustomView?"
I suppose I can try it and see but If one of you is kind enough to
throw some light
Thanks
http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home