1、取消自动获取焦点,点击获得焦点
在父级控件增加
android:focusable="true"
android:focusableInTouchMode="true"
2、取消光标默认颜色
android:textCursorDrawable="@null"
增加drawable文件,改成具体选择
3、软键盘输入法将布局上移
在AndroidManifest.xml
activity控件中增加
android:windowSoftInputMode="adjustPan|stateHidden"
4、 软键盘点击回车键,搜索
android:imeOptions="actionSearch"