Step #1: Get rid of AbsoluteLayout and use RelativeLayout, or possibly
FrameLayout.

Step #2: Add the child at the appropriate index. Later children are
higher on the Z axis than are earlier children.

On Mon, Nov 22, 2010 at 4:16 AM, dannylin <chenkin...@gmail.com> wrote:
> I have a project that needs to change the displayed content
> dynamically
> I know i can remove then add a new view to my layout.
>
>
> the problem in my project is we need to split the screen into
> different layers.
> for example:
> ------------------------------------------------
> |          ----------------------     A       |
> |          |        B          |               |
> |          |                    |               |
> |          |___________ |               |
> |___________________________|
>
> and then dynamically change the View of layer A.
>
> At the layout is built, it works perfect.
> But when i programatically  remove the view and add a new view.
> the new view covers the layer B.
>
> I found there is no z index attribute for me to set in the viewGroup.
> could anyone tell me how to achieve this request ?
> I'm currently using the absolutelayout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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

Reply via email to