2012-06-05 183 views
0

我有微调框和代码android.R.layout.simple_spinner_dropdown_item。 但我得到奇怪的高度是这样的:自定义微调器Android?

enter image description here

我想有dropdown_items像他们在默认情况下也是我不希望有在主屏幕上怪异的高度。

+0

请发表您的XML文件。 – Shrikant

+0

你刚才错过了这个问题30分钟前http://stackoverflow.com/questions/10893460/strange-spinner-how-to-fix-it/10893503#10893503 – Luksprog

回答

1

使用adapter.setDropDownViewResource(int resId)方法使用特定的布局下拉框(而不是元素)

可以看出here

+0

这很好,谢谢你这么多人。 – Wolf87