ListView中的监听器

例子:
OnItemClickListener listener = new OnItemClickListener() {
	@Override
	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		setTitle(parent.getItemAtPosition(position).toString());
	}
};
view.setOnItemClickListener(listener);

另一个为OnItemSelectedListener,用法和上面一样

你可能感兴趣的:(ListView)