嗨,我想在每次按键时从其他文本框的输入中填充一个文本框,但这没有发生。代码是这样的
leftside.setOnKeyListener(new OnKeyListener()
{
@Override
public boolean onKey(View arg0, int arg1, KeyEvent arg2)
{
if(arg2.getAction() == KeyEvent.ACTION_DOWN)
{
Log.v("keyevent", "down");
float value = Float.parseFloat(leftside.getText().toString());
rightside.setText(String.valueOf(SelectConverter(Float.parseFloat(leftside.getText().toString()))));
}
// TODO Auto-generated method stub
return false;
}
});