ListView在基于移动端应用开发中的应用  

ListView Application in Mobile Application Development

在线阅读下载全文

作  者:来学伟[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.

关 键 词:移动端 LISTVIEW 优化 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象