如何改变线条的颜色在ICS风格的EditText [英] How to change the color of the line in ICS styled EditText

查看:260
本文介绍了如何改变线条的颜色在ICS风格的EditText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的应用程序一起使用ABS与主题全息,我得到的EditText风格仿佛在ICS。

I and using ABS together with theme holo in my application and i get EditText styled as if in ICS.

但EditText上的线颜色默认是和我设计的蓝色,我需要的EditText上白色的线条。

But the line color of the EditText is blue by default and for my design, i need white colored line for the EditText.

我试图改变背景,但它不工作。

I tried changing the background, but it is not working.

有没有什么办法让我可以从蓝线的颜色改为白色编程?

Is there any way so that I can change the color from blue line to white programmatically?

推荐答案

您将不得不更改主题为您的应用程序。有一个很不错的网站,可以帮助你与很多: http://android-holo-colors.com/ 这里你选择一个颜色,你想穿那种颜色有主题的控件并生成所有你需要的文件。

You will have to change the theme for your app. There is a very nice site that helps you a lot with that: http://android-holo-colors.com/ Here you pick a color and the controls you want to have themed in that color and it generates all the files you need.

这篇关于如何改变线条的颜色在ICS风格的EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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