【发布时间】:2023-03-09 15:39:01
【问题描述】:
这是一个奇怪的场景。我的编辑文本之一不接受来自笔记本电脑键盘的输入。
这是 XML:
<EditText
android:id="@+id/approval_footer_addinfo_ed"
android:layout_width="wrap_content"
android:layout_height="100dp"
android:layout_below="@+id/approval_footer_addinfo_comment"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/approval_footer_addinfo_star"
android:background="@drawable/shape_edittext"
android:gravity="top"
android:inputType="textMultiLine"
android:padding="3dp" />
在其他屏幕(活动)中,它工作正常。确定模拟器设置没问题。
任何建议。
【问题讨论】:
-
从 sdk 中删除当前模拟器并尝试其他模拟器
-
在任何模拟器中都无法正常工作。
-
用真机试试可能只是模拟器的bug。
-
正确更新你的sdk
-
我尝试了 BlueStacks 和其他 3rd 方模拟器,但仍然无法正常工作。