如何更改的EditText线条颜色 [英] How to change line color in EditText
问题描述
我在我的布局XML文件中创建一个EditText
I am creating an EditText in my layout xml file
但我想在EditText上改变颜色的线从河洛到(例如)红色。 如何可以做?
But I want to change color line in EditText from Holo to (for example) red. How that can be done?
推荐答案
这是可以用于所有的意见和最好的工具,它的自由
this is the best tool that you can use for all views and its FREE
Android的全息颜色生成器让您轻松为你的Android应用程序中创建了Android组件,如 editext
或微调用自己的颜色。它会产生所有必要的9补丁资产以及相关的XML绘制和样式,你可以直接复制到您的项目。
The Android Holo Colors Generator allows you to easily create Android components such as editext
or spinner with your own colors for your Android application. It will generate all necessary nine patch assets plus associated XML drawable and styles which you can copy straight into your project.
http://android-holo-colors.com/
尝试
本图片放在的EditText
android:background="@drawable/textfield_activated"
这篇关于如何更改的EditText线条颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!