ジンジャーブレッドのハッカーとSwiftkey Xキーボードを使用しています。提案線はキーボードの上のほとんどのアプリに表示されます。しかし、Androidマーケット(現在はプレイストア)またはDroidedit(コードエディタ)でキーボードを開くとき、提案は私が使用する任意のキーボードのために示されていません。
この動作を決定するのは何ですか?言葉を提案する方法をどのようにやめることができますか?
ジンジャーブレッドのハッカーとSwiftkey Xキーボードを使用しています。提案線はキーボードの上のほとんどのアプリに表示されます。しかし、Androidマーケット(現在はプレイストア)またはDroidedit(コードエディタ)でキーボードを開くとき、提案は私が使用する任意のキーボードのために示されていません。
この動作を決定するのは何ですか?言葉を提案する方法をどのようにやめることができますか?
I'm using Hacker's and SwiftKey X keyboard on GingerBread. Suggestion line is shown in most apps above the keyboard. But when opening the keyboard in Android Market (now Play Store) or DroidEdit (code editor), the suggestions aren't shown for any keyboard I use.
What determines this behaviour? How can I switch on/force suggesting words?
最もおそらくアプリはその特定の入力ボックスにそれらを表示しないように選択しました。技術的な観点から見ると、これはテキストエリアコントロール(例えば、 <コード> オプション)。アプリが無効にすることを選択した場合、この設定を上書きする方法があるとは思わない。
それは一方向の通りの少しであることに注意することもおそらく重要です。提案はすべてのテキスト領域でデフォルトで有効になっていますが、グローバル設定に従います。そのため、アプリは何らかの方法で提案を強制的に有効にすることはできません。グローバル設定がオフになっている場合は、どこにでもオフです。
申告を強制的に無効にすることを可能にするために開発者のドキュメントが提供する論理は、場合によっては、単にそれほど役に立ちません。特定の関連する引用は(上記のリンクから):
...これは言語から単語を含まないテキストビューに便利で、辞書ベースの補完または訂正から利益を得ることはできません...
私は、アプリの名前や辞書の言葉になる義務がないため、市場が無効にすることができるので、提案の試みはしばしばかなり無駄に証明されるでしょう。私はまたあなたの2番目の例に当てはまることもまた理解しています。これはソースコードエディタのように聞こえます(私はあなたが「構文強調表示」という意味であるものです)。ソースコードのMisspeltの単語の下線を下回るVisual Studioへのakinの種類は、テキストの大部分は辞書単語にならないので、利益はありません。
Most likely the app has chosen not to show them for that particular input box. From a technical perspective, this is controlled by flags on the TextView
object that represents the text area control (e.g. the TYPE_TEXT_FLAG_NO_SUGGESTIONS
option). I don't believe there is any way to override this setting if the app chooses to disable it.
It's probably also important to note that it's a bit of a one-way street. Suggestions are enabled by default on all text areas, but will obey the global setting, so an app can't forcibly enable suggestions in any way. If you have the global setting turned off, they're off everywhere.
The logic that the developer documentation provides for allowing apps to forcibly disable suggestions is that in some cases they simply aren't very useful. The specific relevant quote would be (from the above link):
... This is useful for text views that do not contain words from the language and do not benefit from any dictionary-based completions or corrections ...
I'd wager the Market disables them because app names and such have no obligation to be dictionary words, so suggestion attempts would often prove rather futile. I would also understand the same being true of your second example, which sounds like a source code editor (I assume that's what you mean by "syntax highlighting"). It would be sort of akin to Visual Studio underlining misspelt words in source code - it provides no benefit since most of the text will not be dictionary words.
© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有