I'm new to Android Development and I'm having a problem cloning a View multiple times.
That's my code:
RelativeLayout billboard = (RelativeLayout)findViewById(R.id.billboard);
int x;
x = 1;
while (x <= 100) {
LinearLayout billboardEntry = (LinearLayout)findViewById(R.id.billboardEntry);
View billboardEntryView = getLayoutInflater().inflate(R.layout.billboardentry, billboard, false);
billboard.addView(billboardEntryView);
x++;
}
This code appends the LinearLayout only one time. Any ideas?
Thanks!