Skip to content

Commit 20d8d53

Browse files
committed
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.
1 parent f7ed73c commit 20d8d53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/res/layout/widget_4x1.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
android:ellipsize="end"
3737
android:layout_marginLeft="@dimen/edge_padding"
3838
android:textAppearance="?android:attr/textAppearanceLarge"
39-
android:text="@string/label_account_name" />
39+
android:textColor="@android:color/white"
40+
android:text="@string/label_account_name" />
4041

4142
<TextView android:id="@+id/transactions_summary"
4243
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)