You can't add the same view to a layout multiple times.

So rather than doing this:

15.07.2011 0:52, Goutom пишет:
View view = layoutInflater.inflate(R.layout.listitem,null);
for (int i = 0; i < 5; i++) {
linearlayout.addView(view);
}

Do this:

for (int i = 0; i < 5; i++) {
View view = layoutInflater.inflate(R.layout.listitem,null);
linearlayout.addView(view);
}

--
Kostya Vasilyev

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