How to set text color in android app for all text?

后端 未结 5 846
执念已碎
执念已碎 2021-02-01 12:16

I want to define a default text color for my android app.

I have a base activity class, that all activities are extended from it and I thought this might be a good place

5条回答
  •  旧时难觅i
    2021-02-01 13:02

    Yes you are right you can make that using style. Or you can use TextView.getTextColors().getDefaultColor() for set default text color. Actually I never used this but I think it may be help you.

    For style

          
    

    Then in layout file

    
    

提交回复
热议问题