I am connecting to a terminal emulator using a library in android, this connects to a serial device (a switch) and shows me sent/received data. I send data over serial using another library. I send data over the connection via a text box below the terminal or by typing in the terminal itself and hitting enter on the keyboard in both cases.
However I want to disable input into the terminal, so I tried to set focusable to false. I can still type in it though, Any other way to disable typing into the view?
<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" />
Looking at the source code of the EmulatorView, I saw this function:
Perhaps you can change that to return false, and see if it fixes your problem.
If that doesn’t help, check
See source code