ダイアログポップアップはここにあります。
ポップアップビューの最後でオートコンプリートの結果が停止する方法は次のとおりです。
結果をダイアログのビューを超えて親ビューにドロップダウンしたいと思います。それができない場合は、オートコンプリートで得られる結果の数を2つに制限したいと思います。
これは、ポップアップメニューのクリックリスナーにあります。
addDialog.setContentView(R.layout.shoppinglistadd);
/**Capture the AutoCompleteTextView widget*/
final AutoCompleteTextView autoCompleteTV
= (AutoCompleteTextView) addDialog.findViewById(R.id.productEnteredShop);
/**Fills the autocomplete with possibilities*/
String[] acArray = getResources().getStringArray(R.array.completeFoodsList);
/**Create a new ArrayAdapter and bind shoppinglistitem.xml to each list item*/
ArrayAdapter<String> autoCompleteAdapter
= new ArrayAdapter<String>(ShoppingList.this, R.layout.shoppinglistitem, acArray);
/**Associate the adapter with textView*/
autoCompleteTV.setAdapter(autoCompleteAdapter);