There's only one ViewRoot for an entire view hierarchy (one ViewRoot
per window for instance.) There's certainly not one ViewRoot per View,
and it's actually pretty clear when reading the code of ViewRoot
and/or View.

On Sun, Feb 21, 2010 at 10:03 PM, Guobin <[email protected]> wrote:
> Some comments in ViewRoot.java
> ViewRoot: The top of a view hierarchy, implementing the needed
> protocol between View and the WindowManager.
>
> BRs
> Guobin
>
> On Feb 20, 4:53 pm, sheng wang <[email protected]> wrote:
>> Hi ,
>>
>> Can any one give more information about ViewRoot and what's the relation
>> between viewroot and view?
>> I found a Viewroot  create a surface at its' constructor, which I think is
>> the real bitmap data goes to.  So I guess
>>  every view has it own viewroot, every view has a surface for drawing and
>> the surfaceflinger will finally blend all surfaces together, but I found
>> it's definitely wrong.
>>
>> How view and viewroot cooperate is quite ambiguous to me. Any information
>> will be appreciated!
>
> --
> 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
>



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