初始化執行$("#txt_BarCode").focus();
在手機端會自動彈出軟鍵盤,影響展示,定位是為了掃描條碼,不輸入
這種有辦法禁用軟鍵盤嗎
uj5u.com熱心網友回復:
在你對應界面布局上加 android:focusableInTouchMode="true"比如<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activity"
android:focusableInTouchMode="true"
android:background="@drawable/bk">
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/196391.html
標籤:JavaScript
