Home > front end >  Mobile terminal cursor position is not a soft keyboard
Mobile terminal cursor position is not a soft keyboard

Time:10-31

Initialize the execution $(" # txt_BarCode "). The focus ();
In the mobile client will automatically pop-up soft keyboard, impact, positioning is to scan the barcode, don't enter
This is there a way to disable the soft keyboard

CodePudding user response:

The corresponding interface layout and add your android: focusableInTouchMode="true"

Such as & lt; 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=". The Activity "
android: focusableInTouchMode="true"
Android: background="@ drawable/bk" & gt;
  • Related