change font of all textviews

后端 未结 5 857
一向
一向 2021-01-03 02:28

is there a way to change the fonts of all textviews in a layout?

currently im using this to change fonts manually.

TextView txtAppName = (TextView) f         


        
5条回答
  •  醉酒成梦
    2021-01-03 03:05

    Users can change the default font in the settings, and it sticks with all applications, so if you will find a way to set this settings for the user you will change his font in all of his applications.

    My advice would be to create an extrication for TextView and set your font only once in that Class.

提交回复
热议问题