检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:来学伟[1] Lai Xuewei(College of Information Media,Sanmenxia Polytechnic,Sanmenxia Henan 472000,China)
机构地区:[1]三门峡职业技术学院信息传媒学院
出 处:《信息与电脑》2019年第22期94-95,共2页Information & Computer
摘 要:通过使用convertView,ListView组件避免了反复加载布局文件;通过将子界面的所有组件封装在内部类ViewHolder,并把所有组件的实例缓存在ViewHolder中,减少了调用findViewById()获取组件实例的次数。这两步优化使ListView的应用更加流畅,使用效率也得到了提高,对基于android平台的系统开发有一定的借鉴意义。By using convertView,the ListView component avoids having to load the layout file repeatedly;by wrapping all the components of the sub-interface in the inner class ViewHolder and caching all instances of the component in the ViewHolder,the number of times the findViewById()is called to get the component instance is reduced.These two-step optimizations make the ListView application smoother and more efficient,having certain reference significance for the system development based on android platform.
分 类 号:TP301[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.22.41.47