Android的autocompletetextview下拉框中的元素有一个大字体 [英] Android autocompletetextview dropdown box's elements have a large font
问题描述
我想自动完成下拉框元素大小更改为更小的东西。
任何改变我做textview.settextsize影响下拉框中只有在fieldbox,而不是价值!
我动态添加列表项和我的适配器设置为所述资源
<$p$p><$c$c>adapterForFromAutoText.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);我应该添加自己的资源,自定义字体的风格,如果这样做它事,我使用 adapterForFromAutoText.add(显示名);
通过动态地添加数据该适配器。
你有属性机器人:TEXTSIZE您的android.R.layout.simple_dropdown_item_1line之内?你可能想尝试改变TEXTSIZE那里。
您可能也想看看这个<一个href=\"http://developer.android.com/resources/tutorials/views/hello-autocomplete.html\">tutorial.
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!
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.
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.
这篇关于Android的autocompletetextview下拉框中的元素有一个大字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!