2013-03-26 42 views

回答

0

我認爲你可以使用isSuggestionsEnabled

EditText et = (EditText)findViewById(R.id.mET); 
et.setOnFocusChangeListener(new OnFocusChangeListener() { 
    @Override 
    public void onFocusChange(View v, boolean hasFocus) { 

     if(hasFocus){ 
      boolean suggestions = et.isSuggestionsEnabled(); 
     } 
    } 
}); 
+0

@阿奇,感謝您的答覆,但是這給了假即使軟鍵盤上有文字預測 – 2013-03-26 06:59:51

相關問題