EditText 添加属性如果需要显示其他 比如“完成”什么的,可以修改imeOptions属性android:imeOptions="actionSend" android:singleLine="true"
如果需要输入多行操作,需要在代码设置//在这个实现方法里面判断设置的imeOptions属性操作
et_car_number.setOnEditorActionListener(this); //设置EditText的显示方式为多行文本输入 et_car_number.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE); //改变默认的单行模式 et_car_number.setSingleLine(false); //水平滚动设置为False et_car_number.setHorizontallyScrolling(false);