設置EditText不可被編輯,已有內容不可被更改哦
et.setKeyListener(null);
限制EditText的最大長度,只能輸入數字,設置單行
限制最大長度
限制只能輸數字
設置單行
android:maxLength="11"
android:numeric="integer"
android:singleLine="true"
設置EditText內容居左上角
android:gravity="top|left"
et.setKeyListener(null);
限制最大長度
限制只能輸數字
設置單行
android:maxLength="11"
android:numeric="integer"
android:singleLine="true"
android:gravity="top|left"
01 背景介紹 在智能手機市場上,高端機型經常備受矚目,但低端機型亦佔據了不可忽視的份額。衆多廠商爲滿足低端市場的需求,不斷推出低配系列手機。另外過去幾年的中高端