I want to do something similar. Did you find a solution? On Mar 13, 7:33 pm, Zia <zia.cha...@gmail.com> wrote: > Hi, > > Wanted to know if its possible to draw ViewGroup contents on > SurfaceView/SurfaceHolder canvas? I'm trying to achieve fast 2D > animation (using SurfaceView) alongside Android UI components on the > screen. > > Since SurfaceView punches a hole in the app window, I tried creating > SurfaceView, and inside there I created LinearLayout and added couple > of controls (Button and ImageView). Now I tried calling mLayout.draw > (canvas) from SurfaceHolder canvas, it doesn't render anything. Am i > missing something here? > > I wonder if that would yield better performance then calling > invalidate from Activity.runOnUiThread(). > > Please advice. > > 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---