android如何获取listview中的任意行数据
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
HashMap item = (HashMap)arg0.getItemAtPosition(arg2);
String section =String.valueOf(item.get("name").toString());//get每一行的数据的名字
Toast.makeText(MainActivity.this, section, Toast.LENGTH_LONG).show();
}
});