[android-developers] Re: Swapping in and out ViewGroups (Layout) within a container ViewGroup.

2009-01-30 Thread steele johnson
Ok, I figured it out. When you use LayoutInflater.inflate(id, root), the return value will be the inflated xml root if you _didn't_ provide the root, or it will be the root if you did. To remedy the problem I was having, I simple passed null for the root and then called mContainerLayout.addView (

[android-developers] Re: Swapping in and out ViewGroups (Layout) within a container ViewGroup.

2009-01-30 Thread steele johnson
Hello, ViewFlipper doesn't help either because I still need to add the layout dynamically. The problem really comes down to this: mInnerLayout = (LinearLayout) layout.inflate( R.layout.multiple_select, mContainerLayout); How can I add mInnerLayout to mCon

[android-developers] Re: Swapping in and out ViewGroups (Layout) within a container ViewGroup.

2009-01-30 Thread steele johnson
Thanks for the help. I'll check out ViewFlipper. On Jan 30, 5:02 pm, Mark Murphy wrote: > steele johnson wrote: > > I'm trying to dynamically swap in and out various layouts to one > > layout container. > > Option #1: go the path you are trying > > Option #2: use ViewFlipper or ViewSwitcher for

[android-developers] Re: Swapping in and out ViewGroups (Layout) within a container ViewGroup.

2009-01-30 Thread Mark Murphy
steele johnson wrote: > I'm trying to dynamically swap in and out various layouts to one > layout container. Option #1: go the path you are trying Option #2: use ViewFlipper or ViewSwitcher for parent container and have it handle changing the children > I've instantiated the container layout (m