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 ??
Asked
Active
Viewed 31 times
0
-
RecyclerView / ListView – Submersed Jan 19 '17 at 16:18
-
Thanks, but how can I implement AutoCompleteTextView into RecyclerView's item?? – kovac777 Jan 19 '17 at 21:10
1 Answers
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