【发布时间】:2019-03-13 08:09:30
【问题描述】:
在注册活动中,关注email EditTextField(not autocompletext just edittext),我可以放我经常使用的email。
但它总是输入带有空格的电子邮件。
例如,如果经常使用电子邮件是“tester@test.com”
但是当我在键盘上选择电子邮件时,它会输入空格'tester@test.com'
当我选择带有自动完成功能的电子邮件时,我想删除空格
如果你知道,请帮助我
我把它放在 public void afterTextChanged(Editable s)
Log.d(TAG,"print input email " + "|" + editTextEmail.getText().toString() + "|");
D/JoinActivity: print input email |tester@tester|
D/JoinActivity: print input email |tester@tester|
D/JoinActivity: print input email |tester@tester |
当我在 textchanged 后输入时,
这样打印重复,
2019-03-13 17:55:31.208 24374-24565/? D/InputTransport: Input channel constructed: fd=418
2019-03-13 17:55:31.208 24374-24565/? D/InputTransport: Input channel destroyed: fd=418
2019-03-13 17:55:31.208 14842-14842/com.example.thewell_dev.myapplication D/InputTransport: Input channel constructed: fd=79
2019-03-13 17:55:31.209 14842-14842/com.example.thewell_dev.myapplication D/InputTransport: Input channel destroyed: fd=82
2019-03-13 17:55:31.217 14842-14842/com.example.thewell_dev.myapplication V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@8a6ddd0 nm : com.example.thewell_dev.myapplication ic=com.android.internal.widget.EditableInputConnection@58201c9
【问题讨论】:
标签: android autocomplete removing-whitespace