私はListViewに次のClickListenerを持っています。私のアイテムレイアウトは、3つのTextViewsを持つRelativeLayoutです。私はリスト項目の値を返そうとしていますが、私は "[email protected] ...."を取得しています。私は間違って何をしていますか?ClickListenerとListViewアイテムレイアウト
itemList=(ListView)findViewById(android.R.id.list);
itemList.setTextFilterEnabled(true);
itemList.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> a, View v, int position, long id) {
Intent intent = new Intent();
Bundle b = new Bundle();
b.putString("TEXT", ((RelativeLayout) v).getChildAt(position).toString());
intent.putExtras(b);
setResult(SUCCESS_RETURN_CODE, intent);
finish();
}
});
[ClickListenerは返すデータをどのように知っていますか?](http://stackoverflow.com/questions/5147239/how-does-a-clicklistener-know-which-data-to-return) – kcoppock