Is it possible to have another layout in my main layout? Such that i can set my imageview in another layout.
+1
A:
Sure, take a look at this blogpost.
http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html
broschb
2010-08-13 04:18:51
Is there another way, the code is not in an xml but a class file.
User358218
2010-08-13 05:48:04
Thanks but it is not the one im looking for..
User358218
2010-08-13 08:32:06
+1
A:
You can create a child layout from your Java code and then use addView() method.
For example:
LinearLayout l = new LinearLayout(this);
l.addView(new LinearLayout(this));
Aleksander O
2010-08-13 10:18:11