Android Studio – How to select any item from AutoCompleteTextView programmatically in Android Studio?
AutoCompleteTextView autoCompleteTextView ArrayAdapter<String> adapter; ArrayList<String> list = new ArrayList<>(); @Override protected void onCreate(Bundle savedInstanceState) { // code... list.add("First"); list.add("Second"); list.add("Third"); list.add("Forth"); list.add("Fifth"); autoCompleteTextView = findViewById(R.id.auto_complete); adapter = new ArrayAdapter<>(this, R.layout.drop_down, list); autoCompleteTextView.setAdapter(adpater); } then, after adding some strings to ArrayList…