Android如何为我的自定义编辑文本框更改编辑文本框textcolorhighlight?
我在主题定义中更改了“android:textColorHighlight”,但highlight保持红色Android如何为我的自定义编辑文本框更改编辑文本框textcolorhighlight?,android,css,xml,custom-controls,android-edittext,Android,Css,Xml,Custom Controls,Android Edittext,我在主题定义中更改了“android:textColorHighlight”,但highlight保持红色 custom style below style.xml <style name= "DesertStyleEditText" parent="@android:style/Widget.EditText"> <item name="android:background">@drawable/textview_rounded_edges</i
custom style below style.xml
<style name= "DesertStyleEditText" parent="@android:style/Widget.EditText">
<item name="android:background">@drawable/textview_rounded_edges</item><!-- #5f4427 -->
<item name="android:textStyle">normal</item>
<item name="android:textColor">#EFD9CC</item>
<item name ="android:textColorHighlight">#DDC4B0</item>
</style>
style.xml下面的自定义样式
@可绘制/文本视图\u圆角\u边缘
正常的
#EFD9CC
#DDC4B0
textview_rounded_edges.xml如下
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners android:radius="3dip" />
<stroke android:width="2dip" android:color="#80B47E5A" />
<!-- android:color=#CC83776b"@android:color/transparent"-->
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
<solid android:color="#815940"/><!-- #5f4427"-->
</shape>
访问此网站,您可以下载EditText视图的自定义主题。@logu谢谢,但我想自己做。其次,这个链接不起作用。使用这个链接