[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-05-01 Thread Meryl Silverburgh
Hi, I am doing a similar thing. But I need to do that to a ViewGroup. But what I find out is I see everything exception the background of my ViewGroup. Can you please tell me why? or if background drawable of ViewGroup is painted differently? Thank you. On Fri, May 1, 2009 at 12:42 PM, dan ra

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-05-01 Thread dan raaka
Romain : however the drawing cache (or the code snippet i pasted before) will not work if the View has SurfaceView as its child On Thu, Apr 30, 2009 at 3:48 PM, Romain Guy wrote: > > You can also use the View's drawing cache API. > > On Thu, Apr 30, 2009 at 3:38 PM, dan raaka wrote: > > Bitma

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-04-30 Thread Romain Guy
You can also use the View's drawing cache API. On Thu, Apr 30, 2009 at 3:38 PM, dan raaka wrote: > Bitmap b = Bitmap.create( ); > Canvas c = new Canvas(b); > your_view.draw(c); > use b to in setDrawable else where > > there are missing lines, but you should get the idea > Dan > > On Thu, Apr

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-04-30 Thread dan raaka
Bitmap b = Bitmap.create( ); Canvas c = new Canvas(b); your_view.draw(c); use b to in setDrawable else where there are missing lines, but you should get the idea Dan On Thu, Apr 30, 2009 at 2:23 PM, Moto wrote: > > Hi, > > I need to somehow get a drawable of the contents of a Layout, once I