3

EditTextを作成しようとしていました android:inputType="textMultiLine|textAutoCorrect|textCapSentences|textAutoComplete"

textAutoCorrect残念ながら、 AndroidtextAutoCompleteでは同時に使用することはできません。textAutoCorrect入力時に(スペルチェック用に)複数のオプションを選択できるtextAutoCompleteようになり、ドロップダウンを追加して、個々の単語のカスタム補完の選択肢を提供できます。

ただし、両方を追加textAutoCompleteすると優先されるようです。これは複数行の編集テキストなので、スペルチェックとカスタム選択を提供できるようにしたいと思います。これは、Google +の作曲家がスペルチェックを許可しているので可能だと思いますが、ユーザーについても言及することができます(これはカスタム選択になります)。MultiAutoCompleteTextViewsはtextAutoCompleteinputTypeをビューに追加するので、これらも使用できません。

誰かが私の問題の解決策を考え出すのを手伝ってもらえますか?

4

1 に答える 1

0

ドキュメントを見ると、これは不可能だと思います。

textAutoCorrect     0x00008001   Can be combined with text and its variations to request auto-correction of text being input. Corresponds to TYPE_TEXT_FLAG_AUTO_CORRECT.
textAutoComplete    0x00010001   Can be combined with text and its variations to specify that this field will be doing its own auto-completion and talking with the input method appropriately. Corresponds to TYPE_TEXT_FLAG_AUTO_COMPLETE.

ここで詳細を読むことができます: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType

于 2012-12-19T22:16:37.120 に答える