Adapter 的getView()方法
public view getView(int position,View convertview,Viewgroup parent)这个方法在每个子项被滚动到屏幕内的时候被调用,这个方法就是用来获得指定位置要显示的View。官网解释如下:
Get a View that displays the data at the specified position in the data set. You can either create a View manually or inflate it from an XML layout File
第一个参数position---该视图在适配器数据中的位置
第二个参数convertView---旧视图
第三个参数parent: 此视图最终会被附加到的父级视图