安卓preferences总结默认的颜色? [英] Android preferences summary default color?

查看:184
本文介绍了安卓preferences总结默认的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了一个真正的手机应用程序,尽管的模拟器中的所有文本 preferences摘要似乎是相同的颜色,在真正的手机的颜色是不同的(某种蓝色的...但我想这取决于手机的型号)。

I have installed my app in a real phone, and even though in the emulator all the texts of the preferences summaries seem to be in the same color, in the real phone the color is different (some kind of blue... but I guess it depends on the phone's model).

我如何设置这种颜色为我的自定义preference组成部分? (我已经实现了我自己的搜索栏,及其摘要的文字颜色与所有其他组件的文字颜色不同的...)。

How can I set this color to my custom preference component? (I have implemented my own seek bar, and its summary text color is different from all the other components text color...).

谢谢!

推荐答案

我发现这些:安卓textAppearance =机器人:ATTR / textAppearanceLarge 安卓textAppearance =机器人:ATTR / textAppearanceSmall 似乎这样的伎俩。

I found these: android:textAppearance="?android:attr/textAppearanceLarge" and android:textAppearance="?android:attr/textAppearanceSmall" seem to do the trick.

这篇关于安卓preferences总结默认的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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