Android autocompletetextview popup window items are in large font

I would like to resize the autocomplete drop-down list item to a smaller one. Any change I make to textview.settextsize only affects the value in the field, not the drop-down list!

Screeshot with shows the large font for drop down and the smaller for the listbox

I add list items dynamically and my adapter is set to resource

adapterForFromAutoText.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);

Should I add my own resource to customize the font style, if that matters, I use adapterForFromAutoText.add(displayName);to dynamically add data through the adapter.

+5
source share
2 answers

Do you have an attribute "android:textSize"in your " android.R.layout.simple_dropdown_item_1line"? You can try changing the text there.

tutorial.

+7

,

ArrayAdapter<String> adapter = new ArrayAdapter<String>(
            this, android.R.layout.simple_spinner_item, aList);
0

All Articles