How do I change the textColorPrimary in a theme?

后端 未结 3 2303
借酒劲吻你
借酒劲吻你 2021-02-20 16:21

I\'m changing the theme of an activity in onCreate using setTheme (I\'m doing that even before calling super.onCreate(), as this is supposed to be more reliable).

It doe

3条回答
  •  我在风中等你
    2021-02-20 17:02

    Just as a workaround, Instead of using textAppearanceLarge in the layout, (if you're using xml to build the layout), define your own textAppearanceLarge style in the styles.xml that emulates the android default one except you can change the color to white.

    xml layout:

    
    
    

    then in the styles.xml

    
    

提交回复
热议问题