diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-11 11:11:11 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-11 11:11:11 +0200 |
commit | dbef6cf67f3b4b31a806564a04a18a77ab636eb1 (patch) | |
tree | cd68ee5acf24d472919a78af2b2a128d7b813c6a | |
parent | 47eb65c817605635c0de4612b492f8f60e22789b (diff) |
fix error hint color for older android versions
-rw-r--r-- | app/src/main/res/layout/v_provider_credentials.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/app/src/main/res/layout/v_provider_credentials.xml b/app/src/main/res/layout/v_provider_credentials.xml index 0bfdcc47..65f554aa 100644 --- a/app/src/main/res/layout/v_provider_credentials.xml +++ b/app/src/main/res/layout/v_provider_credentials.xml @@ -18,7 +18,7 @@ android:hint="@string/auth_username" app:errorEnabled="true" android:layout_marginTop="@dimen/standard_margin" - > + app:errorTextAppearance="@style/error_appearance"> <android.support.design.widget.TextInputEditText android:id="@+id/provider_credentials_username" @@ -35,7 +35,8 @@ android:layout_height="wrap_content" app:passwordToggleEnabled="true" android:hint="@string/password" - app:errorEnabled="true"> + app:errorEnabled="true" + app:errorTextAppearance="@style/error_appearance"> <android.support.design.widget.TextInputEditText android:id="@+id/provider_credentials_password" @@ -53,7 +54,8 @@ app:passwordToggleEnabled="true" android:hint="@string/password" app:errorEnabled="true" - android:visibility="gone"> + android:visibility="gone" + app:errorTextAppearance="@style/error_appearance"> <android.support.design.widget.TextInputEditText android:id="@+id/provider_credentials_password_verification" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 97f001a4..485a7497 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -74,4 +74,9 @@ <item name="android:textStyle">bold</item> </style> + <style name="error_appearance" parent="@android:style/TextAppearance"> + <item name="android:textColor">@color/colorError</item> + <item name="android:textSize">11sp</item> + </style> + </resources>
\ No newline at end of file |