2 只能輸入數字和字母android
android:inputType="number"android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"同時設置這兩個就能夠了。git