Sunday, September 11, 2011

[android-developers] Custom LayoutParams

I created my own Layout, let's callit MyLayout and the corresponding
LayoutParams class: MyLayout.LayoutParams.

But when I am inflating my view from XML, it creates the child views
using ViewGroup.LayoutParams instead of MyLayout.LayoutParams.
Obviously, I am missing something in the XML definition where I tie my
MyLayout.LayoutParams to MyLayout.

Anyboyd knows what I am doing wrong here?

--
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


Real Estate