当前位置: 动力学知识库 > 问答 > 编程问答 >

android - different colors for EdtiText hint and TextInputLayout label

问题描述:

How I can set different colors for EditText hint and it's TextInputLayout label.

I tried do it in themes and styles, with android:textColorHint in EditText and TextInputLayout directly, and app:hintTextAppearance attribute on TextInputLayout.

But no one works! Always used same color.

I think, it is because TextInputLayout code:

this.mDefaultTextColor = this.mEditText.getHintTextColors();

I use 23.1.1 version of design library:

compile 'com.android.support:design:23.1.1'

Is there simple way to do this?

I only see way to write descendat of AppCompatEditText, but don't like it

分享给朋友:
您可能感兴趣的文章:
随机阅读: