android - Auto-correction does not work with autocompletetextview? -
it seems there no way enable auto-correction autocompletetextview , multiautocompletetextview in android.
- auto-correction works standard edittext.
- as autocompletetextview or multiautocompletetextview used, auto-correction ceases work.
i've tried bunch of potential workarounds none of them working (i.e. using various input options in xml file).
has been able enable auto-correction on autocompletetextview or multiautocompletetextview , still able feed list of suggestion adapter? much!
autocompletetextview set inputtype.type_text_flag_auto_complete flag on input view.
that flag make ime stop giving auto correct suggestions.
you can extend autocompletetextview , remove flag below
public socialcompletetextview(context context) { super(context); int removed = this.getinputtype() & (this.getinputtype() ^ inputtype.type_text_flag_auto_complete); this.setinputtype(removed); }
Comments
Post a Comment