0
我想使用EditText作爲條形碼掃描儀的輸入。只有硬件鍵盤的Android EditText
條碼掃描器就像一個物理鍵盤。
我掃描條碼
這類型的條形碼就像一個外部鍵盤上輸入末
我有一個EditText應該始終被關注,但從未顯示 軟件鍵盤。我不想完全停用鍵盤,因爲它需要在不同的EditText上的同一個類中。
<EditText
android:id="@+id/barcodeText"
android:layout_width="match_parent"
android:layout_height="40dp"
android:ems="10"
android:singleLine="true"
android:cursorVisible="false"
android:gravity="center"
android:background="#00000000"
android:textColor="@color/secondary_text"
>