输入特定字符和只能输入数字。

editView里面添加

android:digits="1234567890.+-*/% ()",android:numeric="integer"

原文地址:https://www.cnblogs.com/leestar54/p/3383602.html