Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TranslateTo Animation is not working on Samsung Android tablet #17815

Closed
joaodarocha1 opened this issue Oct 4, 2023 · 5 comments
Closed

TranslateTo Animation is not working on Samsung Android tablet #17815

joaodarocha1 opened this issue Oct 4, 2023 · 5 comments
Labels
area-animation Animation, Transitions, Transforms migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 t/bug Something isn't working

Comments

@joaodarocha1
Copy link

joaodarocha1 commented Oct 4, 2023

Description

Animation is not working on Samsung sung Galaxy Tab S7+. It is working on my Samsung Galaxy S23, and on the android emulator.

The visual element just gets moved to the position without respecting the animation length. I've attached a sample project and a video with the two devices.

await MovingSquare.TranslateTo(MovingSquare.TranslationX, MovingSquare.TranslationY - 100, animationTime, Easing.Linear);

The same issue exists in .net 8 preview.

Steps to Reproduce

Sample application, video, and software information is attached.
MauiApp1.zip
20231003_215914

YouCut_20231003_220706737.mp4

Link to public reproduction project repository

No response

Version with bug

7.0.92

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13

Did you find any workaround?

No

Relevant log output

No response

@joaodarocha1 joaodarocha1 added the t/bug Something isn't working label Oct 4, 2023
@jsuarezruiz jsuarezruiz added area-animation Animation, Transitions, Transforms platform/android 🤖 labels Oct 4, 2023
@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Oct 5, 2023
@vallgrenerik
Copy link

I got the exact same issue!
This issue must also be related : #7632

Devices where it doesn't work:

  • Samsung Galaxy S20 FE 5G

Devices where it works:

  • Samsung Galaxy S10E
  • Samsung Galaxy S23 Ultra

(It also works on all emulators)
On iOS, it works both on simulators and physical devices.

I've compared the devices but can't find anything hardware-wise that should impact this issue:
https://www.devicespecifications.com/en/comparison/4520217bb3

The author from #7632 claims that the issue gets resolved when he did a factory reset of his device.
That does not call for hardware issue right?

I'm currently migrating a existing a Xamarin.Forms application to MAUI, and since the LayoutTo method is broken in MAUI (#15439) we are pretty much blocked by this.
In Xamarin.Forms, both the LayoutTo and TranslateTo method works.

I use the TranslateTo-method and it is not respecting the animation length.
TranslateTo is not correctly awaited, it goes directly goes to the "final" value.

@joaodarocha1 joaodarocha1 changed the title TranslateTo Animation is not working on tablet TranslateTo Animation is not working on Samsung Android tablet Oct 11, 2023
@vallgrenerik
Copy link

@jsuarezruiz
Any idea why this is happening on some devices and not others?

@HubbleCommand
Copy link

HubbleCommand commented Oct 15, 2023

I though I encountered this bug. However I turned off battery saving mode and the animations did play. Pretty cool that MAUI actually does this. Strange though as #17287 isn't merged.

@vallgrenerik
Copy link

I though I encountered this bug. However I turned off battery saving mode and the animations did play. Pretty cool that MAUI actually does this. Strange though as #17287 isn't merged.

Interesting! I did have battery saving on, on the device where it didn't work.
I can't test this right now, I did go with a blazor webview instead 😊

@joaodarocha1
Copy link
Author

joaodarocha1 commented Oct 15, 2023

@HubbleCommand you are correct. @vallgrenerik I tested the animations on the Samsung Galaxy Tab S7+ with the battery-saving feature turned off, and they worked correctly. I presume this is a feature, not a bug. It is very misleading and lacks documentation though.

@dotnet dotnet locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-animation Animation, Transitions, Transforms migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants