-1

i am building an app for android in eclipse and don't know the exact no. of textfield it will require as it depends the user how much times the users click add row.in Eclipse you get the graphical tools(i.e. drag and drop) to design you app's view which is done before coding.I want to design my app and add/remove labels,textfield through coding and alter it through coding.

1 Answers1

0

You can create a view programmatically like this:

TextView textView = new TextView(this);

Then just add it to the layout. You can find more information here: http://www.mysamplecode.com/2011/10/android-programmatically-generate.html

Bene
  • 724
  • 8
  • 20