Monday, July 18, 2011

[android-developers] why subview doesn`t appear

i create a custom viewgroup extends ViewGroup,and only override
onLayout method. in the method, i call layout method for subview.And
them call addView method of the new created viewgroup, and add a
subview. but the subview doesn`t appear. when i check it using
hierarchyviewer, i saw the mTop, mRight, mBottom and mLeft are all
zero. i think i must have do something wrong in the custom viewgroup.
thanks

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