From 20d8d5350565f4f66a76c305e59d6df036a693f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Magaz=20Gra=C3=A7a?= Date: Sat, 16 Dec 2017 18:20:04 +0100 Subject: [PATCH] Fix widget black text on black background on newer Android versions textAppearanceLarge's text color has changed from white to black after upgrading targetSdkVersion to 26 (56384db). It seems to affect only newer versions of Android (tested with 7). Switching to textAppearanceLargeInverted would fix it, but the problem appears on older versions (tested with 5). So we leave style and just override the text color. --- app/src/main/res/layout/widget_4x1.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/widget_4x1.xml b/app/src/main/res/layout/widget_4x1.xml index 0d5cb9f29..50debfacf 100644 --- a/app/src/main/res/layout/widget_4x1.xml +++ b/app/src/main/res/layout/widget_4x1.xml @@ -36,7 +36,8 @@ android:ellipsize="end" android:layout_marginLeft="@dimen/edge_padding" android:textAppearance="?android:attr/textAppearanceLarge" - android:text="@string/label_account_name" /> + android:textColor="@android:color/white" + android:text="@string/label_account_name" />