Android的autocompletetextview下拉框中的元素有一个大字体 [英] Android autocompletetextview dropdown box's elements have a large font

查看:261
本文介绍了Android的autocompletetextview下拉框中的元素有一个大字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自动完成下拉框元素大小更改为更小的东西。
任何改变我做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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆