Sorry for spamming! View.addView() didn't work for me cause I forgot
to implement the onLayout abstract method of the ViewGroup. Sorry
again!

On máj. 14, 11:56, Kiripolszky Károly <[email protected]>
wrote:
> Helo Dear Reader!
>
> I'm trying to implement my custom interface for a drawing application
> which contains an editor ViewGroup. The editor group moreover contains
> a SurfaceView for holding the image and custom Views for toolbars. Now
> I wanna make the toolbars ViewGroups as well, so I could make the
> toolbar buttons as additional Views, each having their own event
> handlers and drawing functions. I don't want to implement new GUI
> components, but to build on Android API and only extend the drawing
> and event handling functions of the View. This is necessary as I want
> to display the toolbar ontop of the image so I need my customized
> layout as well.
>
> My problem is that there is no such function
> ViewGroup.addView(ViewGroup view), however the documentation states on
> the page about the View:
>
> "The ViewGroup subclass is the base class for layouts, which are
> invisible containers that hold other Views (or other ViewGroups) and
> define their layout properties."
>
> Could someone please explain how to nest a ViewGroup in another
> ViewGroup?
>
> --
> 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 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

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