[android-developers] Re: inflating xml runtime and repeating that view?

2011-08-18 Thread skink


On Aug 18, 9:55 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 Hi,

 I have one view which is repeating horizontaly and vertically 3x3.I
 have seperate xml for this.I am inflating it runtime and trying to add
 within horizontal or vertical .And applying parent to horizontal or
 vertical linear.But as there can be only one child attached to its
 parent.I am getting java.lang.IllegalStateException: The specified
 child already has a parent. You must call removeView() on the child's
 parent first.

 So what is other way that i can repeat the view with 3x3 array?

Inflate your view 3x3 times

pskink

-- 
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


[android-developers] Re: inflating xml runtime and repeating that view?

2011-08-18 Thread dhruv mewada
why don't you just try using 
gridviewhttp://developer.android.com/resources/tutorials/views/hello-gridview.html
?

-- 
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