Android Studio logger TextView TypeFace style 0

前端 未结 2 1085
借酒劲吻你
借酒劲吻你 2021-01-30 20:20

In my project, I receive the following in a logcat message, for each TextView in all views of my app:

D/TextView: setTypeface with styl         


        
2条回答
  •  深忆病人
    2021-01-30 20:54

    this might be a Samsung specific issue. you probably could try to replace all instances of TextView with AppCompatTextView and see if those warnings get any less... while this is just a wild guess.

    would suggest to mute the noise; goto Logcat > Edit Filter Configuration and then include the packagename (in order to resemble the option "Show only selected application") - and exclude that annoying tag with an exclusive regular expression, alike: ^(?!TextView) or exclude by log message ^(?!setTypeface\swith\sstyle\s:\s0).this should reduce the amount of log spam.

提交回复
热议问题