微调有灰色的文字,为什么呢?我怎样才能改变它默认的文本颜色呢? [英] Spinner has Grey Text, why? How can I change it to default text colour instead?

查看:101
本文介绍了微调有灰色的文字,为什么呢?我怎样才能改变它默认的文本颜色呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现了这种事情在我的应用程序,但无法弄清楚,为什么它变成文字的灰色,就像照片中的...

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

这篇关于微调有灰色的文字,为什么呢?我怎样才能改变它默认的文本颜色呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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