listview的优化

来源:互联网 发布:java时间格式化天 编辑:程序博客网 时间:2024/06/05 09:53

1.convertView != null;

view = convertView;

convertView =null;

view = View.inflate(getApplicationContext(),R.layout.item,null);



2.使用ViewHolder容器存放内容,

static class ViewHolder{

}


0 0