I read doc in material-text-field and there is auto-complete-textView on editText as hint not dropdown. You can see image below. But I can't do it. I try some code with textinputlayout and material-auto-complete-text like this
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til"
..>
<com.google.android.material.textfield.MaterialAutoCompleteTextView
.../>
</com.google.android.material.textfield.TextInputLayout>
in fragment
ArrayList<String> items = new ArrayList<>();
items.add("Material");
items.add("Design");
items.add("Components");
ArrayAdapter<String> adapter = new ArrayAdapter<>(this,R.layout.item, items);
TextInputLayout textInputLayout = findViewById(R.id.til);
and set adapter
((MaterialAutoCompleteTextView) textInputLayout.getEditText()).setAdapter(adapter);
((MaterialAutoCompleteTextView) textInputLayout.getEditText()).setText(adapter.getItem(1),false);
BUT the auto-complete-textview is suggesting the item on dropdown not on editText as a hint.
I want AutoComplete as "AutoC" must be text and "omplete" must be hint
How can I do it ??
