2011-09-30 97 views

回答

9

沿着這條線應該工作。

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