Я реализую floating label согласно материалу дизайна. Теперь я хочу изменить цвет нескольких элементов, например, изменить цвет подсказки по умолчанию (идентификатор электронной почты, который сейчас черный) и строку под ним . Как изменить цвет плавающей метки TextInputLayout
Я прошел аналогичный вопрос, как это, но не смог решить мою проблему.
<resources>
<style name="AppTheme" parent="AppTheme.BaseTheme"></style>
<style name="AppTheme.BaseTheme" parent="Theme.AppCompat.Light.NoActionBar">
</style>
<style name="Signin_EditText" parent="TextAppearance.AppCompat">
<item name="colorAccent">@color/white</item>
<item name="colorPrimary">@color/white</item>
<item name="android:editTextColor">@color/white</item>
<item name="colorControlActivated">@color/white</item>
<item name="colorControlHighlight">@color/white</item>
</style>
<android.support.design.widget.TextInputLayout
android:id="@+id/text_input_layout_email"
android:layout_width="match_parent"
app:hintTextAppearance="@style/Signin_EditText"
android:layout_height="wrap_content">
<EditText
android:id="@+id/edittext_emailid"
android:layout_width="match_parent"
android:textSize="14sp"
android:minHeight="35dp"
android:layout_height="wrap_content"
android:textColorHint="@color/white"
android:inputType="textEmailAddress"
android:textColor="@color/white"
android:hint="@string/emailid"/>
</android.support.design.widget.TextInputLayout>
'colorControlActivated 'и т. д. являются атрибутами * theme *. Они будут * НЕ * разрешаться, если вы примените их через атрибут android: textAppearance' или 'style'. Атрибуты темы должны применяться с помощью атрибута 'android: theme'. –