SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length error whenever an editText becomes empty

前端 未结 2 1242
慢半拍i
慢半拍i 2021-01-24 22:08

Test device: GSM galaxy nexus 4.2 (tested with both built in keyboard and swiftkey 3)

In my app I create a dialog to prompt the user for input. The dialog displays an Ed

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-24 22:52

    Just add this property to your edittext and your problem will definitely be resolved

    android:inputType="textNoSuggestions"
    

    Add the above property to each of your edit text used in the application, or simply where you get the error in that edit text only.

提交回复
热议问题