On 3月31日, 下午5时27分, Dianne Hackborn <hack...@android.com> wrote:
> 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.
>
refer to LayerBase::setPosition(x, y)

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