Android SystemUI glitches in Lollipop

前端 未结 6 1304
借酒劲吻你
借酒劲吻你 2020-11-30 07:27

This bug only occurs on my Nexus 5 and my Nexus 7 running Lollipop.

EDIT

This bug also occurs in the new <

6条回答
  •  遥遥无期
    2020-11-30 08:25

    Setting android:hardwareAccelerated="false" is a kind of extreme solution, as graphical performance is likely to be very bad.

    If you can pinpoint the view that is misbehaving and causing this issue, a better fix would be to switch it to software rendering instead, via setLayerType(), e.g.

    view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    

    Funny thing is, I haven't experienced any rendering glitches with Lollipop so far, but we did see them in KITKAT (as mentioned in this question), and only when WebViews are present on the screen.

    I would recommend experimenting with toggling this on different views until the problem is isolated (especially if it's easy to reproduce).


    So far, every occurence of this issue has been related to WebViews (or components that use WebView, such as AdMob). According to the AOSP Issue Tracker the problem is fixed in Android 5.0, but it doesn't seem to be the case.

提交回复
热议问题