摘要: 我们在使用ListView的时候,一般都会为ListView添加一个响应事件android.widget.AdapterView.OnItemClickListener。本文主要在于对OnItemClickListener的position和id参数做详细的解释,我相信有些人在这上面走了些弯路。先来看一下官方的文档positionThepositionof the view in the adapter.idThe row id of the item that was clicked.而这两行字并没有解释清楚position和id的区别。另外,我们还有个Adapter的getView方法。p 阅读全文
posted @ 2013-01-30 14:33 Atlas's blog 阅读(29291) 评论(0) 推荐(0)