在没有自动更正的情况下编辑文本 [英] Edit Text without Autocorrect

查看:23
本文介绍了在没有自动更正的情况下编辑文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I want an EditText without the autocorrection. I have set the textNoSuggestions inputType, as shown:

 <EditText
    android:id="@+id/txtTarga"
    android:layout_width="150dp"
    android:layout_height="wrap_content"
    android:ems="10"
    android:hint="Targa"
    android:inputType="textNoSuggestions|textCapCharacters" >

The capitalize flag works, but it is still autocorrecting.

How can I disable it?

解决方案

inputType textVisiblePassword will do the trick (most of the times, because as Commonsware pointed out, it stays a request and you'll might find yourself finding devices where it works, and devices where it doesn't work)

这篇关于在没有自动更正的情况下编辑文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆