如何在Firebase UI中更改服务条款的文本颜色

时间:2019-05-13 01:20:47

标签: android firebaseui

enter image description here

尝试更改Firebase UI上的ToS和隐私策略附带的单词的文本颜色。我尝试将文本颜色添加到主题中的样式无济于事。

return maxi, mini

2 个答案:

答案 0 :(得分:0)

尝试一下:

String text1 = "By continuing, You are indicating that you accept our ";
String text2 = "<font color='#EE0000'>Terms of Service</font>"; //Specify your with color='#XXXXXX'
String text3 = " and ";
String text4 = "<font color='#EE0000'>Privacy Policy</font>"; //Specify your with color='#XXXXXX'
textView.setText(Html.fromHtml(text1 + text2 + text3 + text4));

答案 1 :(得分:0)

尝试使用任何颜色替换textColorTertiary

> <style name="LoginTheme" parent="FirebaseUI"> <item
> name="android:textColorTertiary">@android:color/white</item>

....