【发布时间】:2013-01-21 14:04:41
【问题描述】:
我正在使用 android 中的库连接到终端仿真器,它连接到串行设备(开关)并显示发送/接收的数据。我使用另一个库通过串行发送数据。我通过终端下方的文本框或在终端本身输入并在两种情况下都按键盘上的 Enter 键通过连接发送数据。
但是我想禁用终端输入,所以我尝试将可聚焦设置为 false。我仍然可以输入它,还有其他方法可以禁用在视图中输入吗?
<jackpal.androidterm.emulatorview.EmulatorView
android:id="@+id/emulatorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/term_entry"
android:layout_below="@+id/deviceConnect"
android:layout_toRightOf="@+id/scrllyout"
android:focusable="false"
android:focusableInTouchMode="false" />
【问题讨论】: