codenameone

How do I eliminate the afterimage when I showback a form?


How do I eliminate the afterimage when I show back a form? Please reference the images below. Or can I remove the animation of showing back?

Before showback()

enter image description here

During showback()

enter image description here

After showback()

enter image description here


Solution

  • There's no after image. I'm assuming you changed the UIID of Form to a different UIID and didn't make it opaque (bgTransparency = 255) or removed the bgTransparency of the Form UIID.

    In that case the Form isn't painted during the transition animation and you see the smearing effect.