我使用AppCompatEditText我的布局是EDITTEXT变线颜色和文本颜色不同
<android.support.design.widget.TextInputLayout
android:id="@+id/text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.app.dream11.UI.CustomEditTextView
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your name"
CustomEditTextView:fontType="Xanadu" />
</android.support.design.widget.TextInputLayout>
风格我已经定义为
<style name="Widget.Design.TextInputLayout" parent="AppTheme">
<item name="hintTextAppearance">@style/AppTheme.TextFloatLabelAppearance</item>
<item name="errorTextAppearance">@style/AppTheme.TextErrorAppearance</item>
<item name="counterTextAppearance">@style/TextAppearance.Design.Counter</item>
<item name="counterOverflowTextAppearance">@style/TextAppearance.Design.Counter.Overflow
</item>
</style>
<style name="AppTheme.TextFloatLabelAppearance" parent="TextAppearance.Design.Hint">
<!-- Floating label appearance here -->
<item name="android:textColor">@color/warm_grey_two</item>
</style>
<style name="AppTheme.TextErrorAppearance" parent="TextAppearance.Design.Error">
<!-- Error message appearance here -->
<item name="android:textColor">@color/pale_red</item>
<item name="colorControlHighlight">@color/denim_blue</item>
</style>
<!-- edittext line color -->
<item name="colorControlNormal">@color/white_four</item>
<item name="colorControlActivated">@color/greyish_brown</item>
<item name="editTextStyle">@style/App_EditTextStyle</item> <!-- For compatibility with the support library -->
</style>
,但现在的问题是,当我设置edittext的线颜色说蓝色,然后文字颜色也变成蓝色但我想 线颜色守LD是不同的,文字颜色也不同
所以在我的情况,我有不同的颜色对主旋律初级 – andro
使用这种.......并根据需要对colorprimary和coloraccent –
的变线没有得到你检查我的代码更改颜色 – andro