微调有灰色的文字,为什么呢?我怎样才能改变它默认的文本颜色呢?
问题描述:
我实现了这种事情在我的应用程序,但无法弄清楚,为什么它变成文字的灰色,就像照片中的...
I implemented this kind of thing in my app but can't figure out why it turns text grey, like in the photo...
有谁知道为什么吗?我如何改变它默认的文本颜色?在我的布局文件微调看起来像黑色文本..但是当我运行它,它是灰色的,就像这个样本。
anyone know why? and I how do i change it to default text colour? the spinner in my layout file looks like black text.. but when I run it, it is grey just like in this sample.
HTTP://android-er.blogspot。 COM / 2010/12 /自定义微调与 - icon.html
答
您需要创建一个自定义适配器挂接到创作的意见。相似的,所以为你一些有用的信息问题:微调更改字体颜色
You'll have to create a custom adapter to hook into the creation of the views. Similar SO question with some useful info for you: Change spinner font color