1.dayText3.setInputType(InputType.TYPE_NULL); 不讓edittext按enter鍵後,彈出輸入框android
2.在使用EditText的XML 文件中加入一個屬性:
android:textCursorDrawable="@null"
android:textCursorDrawable 這個屬性是用來控制光標顏色的,
"@null" 是做用是讓光標顏色和text color同樣
android:textCursorDrawable 的用法能夠查看android sdkspa
3.如何隱藏edittext閃爍光標orm
在EditText控件的xml中添加這個屬性就好了
android:cursorVisible="false"xml
4.須要在EditText輸入的時候左起位置和自動換行後每行的左起位置都能空出10dpip
android:paddingLeft="10dip"it