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 raaka <[email protected]> wrote:
> 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 <[email protected]> wrote:
>>
>> You can also use the View's drawing cache API.
>>
>> On Thu, Apr 30, 2009 at 3:38 PM, dan raaka <[email protected]> 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 30, 2009 at 2:23 PM, Moto <[email protected]> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I need to somehow get a drawable of the contents of a Layout, once I
>> >> get that "drawable" I want to set it as a background on an empty
>> >> layout....
>> >>
>> >> How can I go about doing this?
>> >>
>> >> Thanks!
>> >> Moto!
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>> [email protected]
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to