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
(
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
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
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
4 matches
Mail list logo