当我从笔记本电脑键盘向“编辑文本”提供输入时,它将打印(输入错误)行话。例如,从我的键盘上键入“伦敦”将打印“øóñðóñ”。数字“ 12345”打印为“²²¤€”
我已尝试多次更改“编辑文本”,但没有用。来自仿真器键盘的输入可以正常打印。几个小时前没有这样的错误。
用于编辑文本xml的代码:
<EditText
android:id="@+id/cityText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="80dp"
android:layout_marginLeft="80dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="80dp"
android:layout_marginRight="80dp"
android:ems="10"
android:inputType="textPersonName"
android:text="Name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
解决了。 Ctrl + Alt + Shift +向左箭头键的某种组合有效!