Hi all,
i have recipe_comment_sample.xml of LinearLayout i have been inflating
it, and i want to add this dynamically multiple times in another
Linearlayout lL,
as follows
for(int i=0;i<size;i++)
{
View commentsView =
(LinearLayout)layoutInflater.inflate(R.layout.recipe_comment_sample,linearlayout
);
/*
some operations on commentsView
*/
lL.addView(commentsView, i);
}
i am getting this exception
"The specified child already has a parent. You must call removeView()
on the child's parent first."
what is will be solution??
Regards
Imran ali
--
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