What are the default font characteristics in Android ?

前端 未结 2 2013
滥情空心
滥情空心 2020-12-07 18:02

I know that fonts properties can be found in the TypeFace class but I can\'t find the default characteristics of the writing in Android. I mean, if I take a

2条回答
  •  萌比男神i
    2020-12-07 18:17

    You can check the default style of the widgets here: android/res/values/styles.xml

    Then, looking for Textview you reach

      
    

    and after researching a little bit, you find out that this appearance is defined in the same styles.xml file

    
    

    where

    @android:color/secondary_text_dark
    

    these colors are defined in /res/color/, check /res/color/secondary_text_dark.xml

    Bookmarking the android/res/values folder is a must!

    Update: my old links are broken, check Android core resources folder on Github. Thanks to kreker for the link.

提交回复
热议问题