關于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>,求高人指點