您的位置:首页 > 其它

继承了BaseAdapter,当在ListView单击时,获取该行里面的指定值的方法。

2012-07-05 13:29 295 查看
just take reference of of the text view if you extending a BaseAdapter like:

listView.setOnItemClickListener(new OnItemClickListener() 
{
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
			long arg3)
	{
		TextView tv = (TextView)arg1.findViewById(R.id.textview_02);
		String str = tv.getText().toString();
		Log.i(TAG, str);
	}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐