1

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

AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
  • try this http://stackoverflow.com/questions/27224394/android-lollipop-activity-screen-corrupted/27224514#27224514 – MineConsulting SRL Dec 05 '14 at 09:38
  • From what I understand the solution is to assign a background to a root view in XML? I use layouts w/ background assigned in the root view already but this is still happening. Am I understanding this correctly? – AlexVPerl Dec 05 '14 at 09:46
  • I don't know if is the same problem but i had a similar problem and the solution to fix it was give a background to each layout. – MineConsulting SRL Dec 05 '14 at 09:48
  • by layout do you mean root view of each activity layout? Or every partial layout as well ? Also did you use a transparent image or a transparent color resource ? – AlexVPerl Dec 05 '14 at 09:52
  • Yes sure i mean the root view o each layout, try using a @color doesn't matter which one it could also be trasparent – MineConsulting SRL Dec 05 '14 at 09:54
  • I have tried to add a background to every root element but this does not seem to resolve this for me. – AlexVPerl Dec 05 '14 at 19:43
  • In my case I found that transparent background 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. – AlexVPerl Dec 11 '14 at 06:27

2 Answers2

0

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.

AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
0

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

Community
  • 1
  • 1
Sunny Garg
  • 1,073
  • 1
  • 6
  • 13