Android如何更改我的自定义edittext框的edittext框textcolorhighlight?

时间:2014-04-09 13:33:32

标签: android css xml custom-controls android-edittext

我已经改变了#34; android:textColorHighlight"在我的主题定义中,但突出显示保持红色。

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>

下面的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>

0 个答案:

没有答案