1.设置只能输入字母和数字的方法:
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" />
2.设置自动大写两种方法:
1>重写afterTextChanged方法
2>定义ReplacementTransformationMethod
etAccount.setTransformationMethod(new UpperCaseTransform());
over~