Android MultiautoCompletTextViewスペースを使用するときに表示リストは表示されません

StackOverflow https://stackoverflow.com/questions/9017651

  •  14-11-2019
  •  | 
  •  

質問

私のAndroidアプリケーションのmultiautocompleteTextViewにアダプタを設定しました。

ArrayAdapter<String> adapter = new ArrayAdapter<String>(SearchSuburb.this, android.R.layout.simple_dropdown_item_1line, sub);
searchtext.setAdapter(adapter);

static final String[] sub = new String[] { "Melbourne VIC 3000", "East Melbourne VIC 3002", "West Melbourne VIC 3003", "St Kilda Road Central VIC 3004", "World Trade Centre VIC 3005",
        "South Wharf VIC 3006", "Southbank VIC 3006"};
.

私がタイピングしながらスペースに出くわされるまでうまく機能します。

私がVICを入力したとき、それは予測結果を与えますが、私が空間を押すと消えます。 この問題を解決する方法?

事前にありがとう!

役に立ちましたか?

解決

I had the same problem and found this

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top