Android Studio logger TextView TypeFace style 0

前端 未结 2 1084
借酒劲吻你
借酒劲吻你 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:52

    On logcat, right click and select "Fold lines like this" then edit down that line to just the bit from "TextView..." - then they all disappear.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题