イベントをトリガーしたビューを取得する方法を知っていますか? 例:
final AutoCompleteTextView edtxInput = (AutoCompleteTextView)layout.findViewById(R.id.edtx_input);
edtxInput.setThreshold(2);
edtxInput.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View arg1, int position, long arg3) {
Console.debug(TAG, "view: " + arg1, Console.Liviu);
edtxInput.setText(((FormOption)edtxInput.getAdapter().getItem(position)).getDescription());
}
});
ここでの問題は、OnItemClickListener の edtxInput からのテキストを最終的なものにせずに更新する方法がわからないことです。
ありがとう