On Sun, Jul 11, 2010 at 3:37 PM, MCON Dev <[email protected]> wrote:
> But I need to programmatically include 1 xml into another.

Please elaborate on what you mean by this.

> addview returns
> 07-12 01:01:18.429: ERROR/AndroidRuntime(267):
> java.lang.IllegalStateException: The specified child already has a parent.
> You must call removeView() on the child's parent first.
> 07-12 01:01:18.429: ERROR/AndroidRuntime(267):     at
> android.view.ViewGroup.addViewInner(ViewGroup.java:1970)
> ((ViewGroup) placeHolderProductList).addView(productList,
> new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,
> LinearLayout.LayoutParams.WRAP_CONTENT)) ;

The error is very self-explanatory. productList already has a parent.
You cannot add it to another parent at this time.

Where is productList coming from?

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

Android Training...At Your Office: http://commonsware.com/training

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

Reply via email to