关于onItemClick方法求答
public void onItemClick(AdapterViewCompat<?>parent, View view, int position,
long id) {
// TODO Auto-generated method stub
String text=ListView.getItemAtPosition(position)+"";
Toast.makeText(this, "position="+position+"text="+text, Toast.LENGTH_SHORT).show();
}
下划线代码语句是报错Cannot make a static reference to the non-static method getItemAtPosition(int) from the type AdapterView<ListAdapter>,求高人指点