2011-09-30 70 views

回答

9

沿着这条线应该工作。

EditText.setOnFocusChangeListener(new View.OnFocusChangeListener() 
{ 
    @override 
    public void onFocusChange(View v, boolean hasFocus) 
    { 
     if (!hasFocus) { 
      string value = (EditText) v.getText().ToString(); 
     } 
    } 
}