2015-02-24 38 views
0

我的任務是檢測我的應用程序的TextView中的文本更改,儘可能接近實時。但是,使用SwypeKey等Swype式虛擬鍵盤時,整個單詞會立即出現。有什麼方法可以至少檢測到用戶正在使用虛擬鍵盤執行某些操作,例如移動手指?如何檢測用戶在鍵盤上的活動

+0

你:這與EditText上和TextView的(即使我從來沒有與一個TextView試過)

@Override public void afterTextChanged(Editable s){ } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after){ } @Override public void onTextChanged(CharSequence s, int start, int before, int count){ } 

你探微必須與添加它工作想要檢查TextView或EditText中的文本是否改變? – AxelH 2015-02-24 12:41:29

回答

0

使用Textwatcher。你將能夠看到每一個變化。

TextView.addTextChangedListener(TextWatcher)

相關問題