What's the quickest way to add several views to a LinearLayout?
问题 I have a LinearLayout view that already contains several elements. I want to add a lot more Views to it, programmatically. And because this is inside a ScrollView , everything will be scrolled. So what I do is go through my list, and add new instances of my custom View to it. That custom view inflates a XML layout and adds a few methods. This approach works well. The problem is that it's super slow, even without any crazy code... a list with 10 items takes around 500ms to instantiate. As an