Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想在活动创建时打开预测文本选项,在活动销毁时关闭
我认为预测文本输入是输入对象的参数。因此,当您在开始编辑文本时调用输入对象时,可以给它一个参数 : text|textNoSuggestions,这样键盘就不会显示建议。
text|textNoSuggestions
setInputType(text|textNoSuggestions)