Error inputText

-2

Hello all the error of the log on an inputText, I do not know how to delete, the app runs but at a certain moment it closes, this one appears in the log.

E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Greetings

UPDATE. The problem is an inputtext from an Alerdialog, so I declare it.

builder = new AlertDialog.Builder(context);
    final EditText input = new EditText(context);
    input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
    input.setHint("0.000");
    builder.setView(input).setTitle("Ingrese Cantidad");
    builder.setCancelable(false);
    
asked by Alldesign Web 29.05.2017 в 18:43
source

1 answer

0

Define your property EditText :

android:inputType="textNoSuggestions"

or programmatically:

myEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
    
answered by 29.05.2017 / 21:39
source