Android代码的时候出现问题 高手指教一下
我写的是:listView.setOnItemClickListener(newOnItemClickListener(){publicvoidonItemClick(A...
我写的是:
listView.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?>av, View v, int
position, long id) {
..........
显示错误是:The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView<ListAdapter> is not applicable for the arguments (new OnItemClickListener(){})
如何更改? 展开
listView.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?>av, View v, int
position, long id) {
..........
显示错误是:The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView<ListAdapter> is not applicable for the arguments (new OnItemClickListener(){})
如何更改? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询