public static int primary, defaultTextColor, defaultTextColorDisabled;
public static int profileThemeId = -1;
public static MutableLiveData<Integer> themeWatch = new MutableLiveData<>(0);
+ public static int errorTextColor;
private static int[] themeIDs =
{R.style.AppTheme_NoActionBar_000, R.style.AppTheme_NoActionBar_005,
R.style.AppTheme_NoActionBar_010, R.style.AppTheme_NoActionBar_015,
defaultTextColorDisabled = 0x7f000000 | 0x00ffffff & defaultTextColor;
theme.resolveAttribute(R.attr.colorAccent, tv, true);
accent = tv.data;
+ theme.resolveAttribute(R.attr.errorTextColor, tv, true);
+ errorTextColor = tv.data;
// trigger theme observers
themeWatch.postValue(themeWatch.getValue() + 1);
<color name="table_row_light_bg">#28ddcbff</color>
<color name="header_border">#804a148c</color>
<color name="error_background">#FFE1E2</color>
+ <color name="errorTextColor">#CD1609</color>
</resources>
<item name="table_row_dark_bg">#286c33d4</item>
<item name="table_row_light_bg">#28ddcbff</item>
<item name="textColor">@android:color/tab_indicator_text</item>
+ <item name="errorTextColor">@color/errorTextColor</item>
</style>
<style name="StretchedTextView" parent="Widget.AppCompat.TextView"></style>