Skip to content

[Android] Animated content is cut off/glitchy when RenderTransform translation is applied #1333

Closed

Description

@davidjohnoliver

How to reproduce it (as minimally and precisely as possible)

  1. Have an animated view, such as ProgressRing.
  2. Set a TranslateTransform on the view's ancestor that puts it partially outside its original bounds.
  3. Simulate a heavy load on the UI thread.
  4. Run on Android 8 or above hardware-accelerated device. (Ie not an emulator)

Current behavior

Outside its original bounds, the animation will be glitchy and choppy.

Expected behavior

Animation is completely smooth.

Notes

This issue surfaced after Transforms were refactored to use getChildStaticTransformation() on Android (#515). The original issue after this refactor was that the animation was not updated at all outside the original bounds. This was reported to the Android framework as a bug: https://issuetracker.google.com/issues/133864398

The Android team pointed out that the native setClipChildren(false) method gives the desired behaviour, ie the entire animation is updated. This should be applied as the solution in Uno, and the previous workaround (invalidateTransformedHierarchy()) and related logic should be removed.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Aug 1, 2019
  2. added
    platform/android 🤖
    and removed
    triage/untriaged
    on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bugplatform/android 🤖

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions