Search code examples
androidlistviewandroid-scrollview

ScrollView or ListView for many different items?


I am looking for what is the best practice for my case. I need to add dynamic content to a view, these elements are very deferent between them so this made me think what is better? For now I am using ListView but I had problems with the recycled view especially because I need to take some value for each row given by the user. In the rows there may be edittext, checkboxes, buttons, etc.

What should I use?


Solution

  • You can achieve your goal with both approaches. RecyclerView is now the preferred one because it is the new API to achieve this goal. It is more powerful, more flexible