Android Question problem in disablesoftkey

Blu Blu

Member
Licensed User
Dear everyone,
i used these codes and works fine(if i click on the edittext or focused on it, the softkey is always hidden)

B4X:
#IF JAVA
    import android.widget.EditText;
    import android.os.Build;
    import android.text.InputType;
    

 public void disableSoftKeyboard(final EditText v) {
    if (Build.VERSION.SDK_INT >= 11) {
        v.setRawInputType(InputType.TYPE_CLASS_TEXT);
        v.setTextIsSelectable(true);
        v.setShowSoftInputOnFocus(false);
        BA.Log(">= 11 set");
    } else {
        v.setRawInputType(InputType.TYPE_NULL);
        v.setFocusable(true);
        BA.Log("< 11 set");
    }
}

#END IF


but if i input into edittext just a number or one letter , the android softkey appears again
i tried to use ime.hidekeyboard in the textchanged event, and the screen will go up and down

Thanks very much in advance
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…