【发布时间】:2017-08-28 12:37:25
【问题描述】:
我已经尝试了所有组合,但仍然没有达到我想要的效果,所以请帮助我!
我想要什么
我需要 键盘 没有 auto prediction 和 enter key 用于多用途
- 单击:应该转到下一行
- 长按:应该显示表情符号键盘 和
这里是代码
<EditText
android:id="@+id/editTextWord"
android:gravity="top|start"
android:paddingStart="8dp"
android:scrollbarStyle="insideInset"
android:scrollbars="vertical"
android:overScrollMode="always"
android:background="@color/background_walk_through_six"
android:paddingEnd="8dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_above="@+id/txtCharacters"
android:backgroundTint="@android:color/transparent"
android:inputType="textMultiLine"
android:layout_width="match_parent"
android:layout_height="match_parent" />
我的尝试
android:inputType="textMultiLine"
或
android:inputType="textMultiLine|textNoSuggestions"
以上行显示enter key 已完成,但我无法阻止auto prediction
android:inputType="textMultiLine|textNoSuggestions|textVisiblePassword"
上面的行显示enter key 和nextline[单击] 并防止auto prediction 意味着当我添加textVisiblePassword 表情符号时,长按Enter Key 时不显示
我已经尝试以编程方式但它显示 done 按钮
editTextWord.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
我想你现在明白我需要什么了!
【问题讨论】:
标签: android android-edittext android-softkeyboard