单击列表项时,我在Toast中显示位置。但是立场出错了。为什么会产生这种类型的问题。请帮帮我!
答案 0 :(得分:0)
listView.setOnItemClickListener(new OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
Log.i("You clicked On ", arg2+"" );
});