Android Views Looks Distorted / Scrambled in Android 5 Lollipop

943 Views Asked by At

This seems to only happen on my Nexus 5 with Android 5.0 Lollipop installed.

After navigating through 5-6 activities, I start to see distortion in the view rendering, here's a part of the screen distorted below.

Is anyone facing anything similar? And any idea on how to remedy this?

enter image description here

2

There are 2 best solutions below

0
On

In my case I found that adding a transparent background to all root views did not resolve this across all SDKs. Lower SDKs do not support transparent color.

To resolve I used a solid color for activity background that worked well with the UI design/colors.

0
On

This seems to be the ART (Android run time) issue. As Google introduced ART by replacing the DVM for android 5 devices (lollipop devices).

ART makes less frequent calls to garbage collector due to which it makes memory leak situation and due to which it makes UI hangs/distorted.

UI distortion issue on Android 5.0 Lollipop