0

My application has a form to fill data (invoice). And just as there is a button to add a new line in the invoice. So far I use to add new view of the layout, but it is not a suitable option, because, let us assume that the user will need to enter 100 items, which will lead to higher costs and memory performance. Maybe someone will offer a better option ??

kovac777
  • 730
  • 6
  • 19

1 Answers1

0

You should use listview

Each time ths user is adding a new row you can call notifyDataSetChanged() method, this will refresh adapter and add new rows. Each rows is only created when it is shown, so memory consumption stay low.

Edit

With listview you should read documentation on adapter which give you control on elements in your listview.

Yoleth
  • 1,269
  • 7
  • 15