summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-07-11 11:11:11 +0200
committercyBerta <cyberta@riseup.net>2019-07-11 11:11:11 +0200
commitdbef6cf67f3b4b31a806564a04a18a77ab636eb1 (patch)
treecd68ee5acf24d472919a78af2b2a128d7b813c6a /app/src/main
parent47eb65c817605635c0de4612b492f8f60e22789b (diff)
fix error hint color for older android versions
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/res/layout/v_provider_credentials.xml8
-rw-r--r--app/src/main/res/values/styles.xml5
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