Android に問題があります。AutoCompleteTextView を使用している場合:
AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.entry);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.url_addresses);
String[] url_addresses = getResources().getStringArray(R.array.url_addresses);
for (String string : url_addresses) {
adapter.add(string);
}
textView.setAdapter(adapter);
.....
また、テキストボックスに「google」というキーワードを入力すると、「google」で始まるすべての URL を表示するオートコンプリート システム。例えば:
- Google COM
- google.com.tr
- google.co.uk
しかし、「google」を含む URL を表示したい。例えば:
- http://www.google.com/
- https://mail.google.com/
- http://another.google.com/
この問題は、アイテムにスペースが含まれていない場合に発生したと思います (URL のような 1 つの単語)。
可能です?
どうもありがとう。