Android高级控件(BaseAdapter)

ListView提高效率 为每一项写一个xml布局文件 写内部类继承BaseAdapter 重写方法,其中: 给ListView组件setAdapter我们写的适配器对象  问题:①每次调用都要解析xml文件,消耗内存 ②每次调用都要查找findViewById 使用convertView:当convertView为空时才解析 使用持有者模式:  
相关文章
相关标签/搜索