Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android autocompletetextview dropdown box's elements have a large font

I would like to change the autocomplete dropdown boxes element size to something smaller. Any change i do with textview.settextsize affects only the value in the fieldbox and not in the drop down box!

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

I am adding the list items dynamically and my adapter is set to the resource

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

Should i add my own resource to customize the style of the font, if so does it matter that i use adapterForFromAutoText.add(displayName); to dynamically add data through the adapter.

like image 933
Sethu Avatar asked Apr 18 '11 02:04

Sethu


1 Answers

Do you have the attribute "android:textSize" within your "android.R.layout.simple_dropdown_item_1line"? You may want to try to change the textSize there.

You may also want to check out this tutorial.

like image 88
Erick Avatar answered Sep 28 '22 01:09

Erick