2009/3/31 waterblood <guoyin.c...@gmail.com>

> if so, the Layer must have information about its position in display.
> But I only see it is created as the code below:
>    Layer* layer = new Layer(this, display, client, id);
>    status_t err = layer->setBuffers(client, w, h, format, flags);
>
> so layer only knows the windows size w,h, and format. How it knows it
> is relative position in display?


Well there are APIs to change the layer's values.  Just look at the Surface
APIs to see them at the Java level.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to