美文网首页
[ANR Warning]onMeasure time too

[ANR Warning]onMeasure time too

作者: gale_小米 | 来源:发表于2021-12-21 15:26 被阅读0次
V/InputMethodManager: onWindowFocus: androidx.appcompat.widget.AppCompatTextView{3cf49fe3 VFED.... .FS...ID 62,5-168,39 #7f0901a9 app:id/left_txt} softInputMode=272 first=true flags=#81810500
D/View: [ANR Warning]onMeasure time too long, this =androidx.appcompat.widget.FitWindowsLinearLayout{152a5063 V.E..... ......ID 0,0-1280,800 #7f090045 app:id/action_bar_root}time =439 ms
D/View: [ANR Warning]onMeasure time too long, this =com.android.internal.policy.impl.PhoneWindow$DecorView{23f0eeeb V.E..... R.....ID 0,0-1280,800}time =440 ms

ConstraintLayout 踩坑
记一次封装组合控件时的坑,我才用了集成 ConstraintLayout 来封装ui控件;

导致在mtk 6582 (Android 5.1出现如上述日志中的anr异常,导致ui切换时会有延迟响应的情况)

从日志上来看 好像和ConstraintLayout没有直接关联,检查代码逻辑和布局文件并没有发现问题;

从日志上看,怀疑是和androidx版本控件引起的,坚持布局文件,只应用了ConstraintLayout
,把ConstraintLayout 改为RelativeLayout 后,测试验证并没有再复现出anr延迟响应的问题

具体原因暂时不清楚,后续有时间再研究

相关文章

  • [ANR Warning]onMeasure time too

    ConstraintLayout 踩坑记一次封装组合控件时的坑,我才用了集成 ConstraintLayout 来...

  • ANR

    1.log筛选 ANR Warning

  • Rest life

    The time left in rest life is not too much, and the time ...

  • TIME

    Time is Too slow for those who wait,Too long for those wh...

  • My father

    To be honest, time is running out too fast. The last time...

  • 2022-06-10 Follow Macro Goals, b

    We often waste our time because we get too excited too qu...

  • Almighty God

    “Is anything too wonderful for the Lord? At the set time ...

  • Time is too short for me, I need

    I want to get more time, the time for me is too short. Ev...

  • 生活

    "Life is too short No time for regrets If it is not the e...

  • 积极生活

    Life is too short to be serious all the time In order to ...

网友评论

      本文标题:[ANR Warning]onMeasure time too

      本文链接:https://www.haomeiwen.com/subject/afexqrtx.html