我有一个带有EditText的ListView,我在我的适配器类中编写了onEditorAction Listner,用于Android键盘的Next键到我的计算。我写了一个listner它对我来说很好,但是在完成我的计算之后,在编写这个OnEditorAction之前它不会专注于listview中的下一个EditText,它会关注listview中的下一个edittext。 我怎样才能实现这一点,以解决我的问题?
以下是代码:
ed_Current.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
int tag = (Integer) v.getTag();
if((actionId== EditorInfo.IME_ACTION_NEXT)){
Log.i("tag","lostFocus");
Some calculation then go to next edittext
return true;
}
return false;
}
});