-1
I have a EditText
I need you to stay focused, but do not open the keyboard at any time, as it will receive a reading from a Qrcode.
You can do it?
I’ve tried that:
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/txt_focus_qrcode_armazenagem"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="40dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="40dp"
android:background="@drawable/caixa_txt"
android:configChanges="keyboardHidden|orientation|screenSize"
android:focusable="true"
android:gravity="center"
android:hint="Leia o endereço:"
android:inputType="text"
android:maxLines="1"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txt_armazenagem" />
Tried to change the
android:focusable="true"
forandroid:focusable="false"
?– Guilherme Nascimento
Good Afternoon...that from what I saw appensas leaves in focus the text,but still if clicking opens the keyboard
– Gabriel Felski