Skip to content

Text Flickering and Alignment Shift while invalidating the Drawable #1026

Description

@HarishwaranVijayakumar

I am creating a custom control where the text needs to be updated dynamically. To update the text I have used DrawText inside a CanvasControl. But when I am invalidating the canvas to update the text, I am noticing flickering or text alignment shift on the existing constant (static) texts randomly.

To Reproduce

  1. Download the repro app: App1.zip (https://github.com/user-attachments/files/29046012/App1.zip)
  2. Run the app
  3. Click and drag the mouse inside the canvas
  4. Observe the static text at the top flickering or shifting position

Expected behavior:

  • Static text should remain stable and not flicker or shift position during rapid redraws.
    Actual Behavior:
Native.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions