答案 0 :(得分:0)
最简单的方法是 TextWatcher 监听器,该监听器将在您单击edittext时触发。
editText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {
}
@Override
public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
//enable your speech to text.
}
@Override
public void afterTextChanged(Editable arg0) {
}
});
告诉我您的想法。