when I use addView,it's too slow.why?
<pre><code>LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
    for (int i = count; i &lt; adapter.getCount(); i++) {
        final int index = i;
        final LinearLayout layout = new LinearLayout(getContext());
        layout.setLayoutParams(params);
        layout.setOrientation(VERTICAL);
        View v = adapter.getView(i, null, null);
        v.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                //防止连续点击
                if (System.currentTimeMillis() - time &lt; 800) {
                    return;
                }
                time = System.currentTimeMillis();
                if (onItemClickListener != null) {
                    onItemClickListener.onItemClick(LinearLayoutForListView.this, layout, index,
                            adapter.getItem(index));
                }
            }
        });
        ImageView imageView = new ImageView(getContext());
        imageView.setBackgroundResource(R.drawable.divider_list);
        imageView.setLayoutParams(params);
        layout.addView(v);
        layout.addView(imageView);
        addView(layout, index);
</code></pre>
