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

[Android] RotateYTo - wrong perspective rendering in Android #20044

Open
bcaceiro opened this issue Jan 21, 2024 · 9 comments
Open

[Android] RotateYTo - wrong perspective rendering in Android #20044

bcaceiro opened this issue Jan 21, 2024 · 9 comments
Labels
area-animation Animation, Transitions, Transforms platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@bcaceiro
Copy link

Description

When using the method RotateYTo, to a visual element, in this case, a Frame, in iOS it is rendered correctly, however, in Android, the perspective is screwed up, giving a aweful experience.

See video repro:

BugMauiRotateYTo.mov

Steps to Reproduce

Add a Frame to a Page

<Frame BackgroundColor="#2596BE"
                       HeightRequest="70"
                       WidthRequest="165"
                       Padding="0"
                       x:Name="doorFrame1"
                       CornerRadius="0"
                       Margin="5,0,5,0"
                       BorderColor="Transparent"
                       VerticalOptions="Center"
                       HorizontalOptions="Center">

And, in code-behind, animate the RotateYTo:

public async void DoMagicClicked(object sender, EventArgs args)
{
     doorFrame1.AnchorX =  1;
     await doorFrame1.RotateYTo(75, 700, Easing.BounceOut);            
}

Link to public reproduction project repository

No response

Version with bug

8.0.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android API 30+

Did you find any workaround?

Not really, I found this link https://theconfuzedsourcecode.wordpress.com/2017/12/19/ze-flippable-view-in-xamarin-forms-with-native-animations/ where the author talks about the Camera Perspective, however I am not sure how to use this with current maui architecture.

Relevant log output

No error messages, just the wrong renderization in Android
@bcaceiro bcaceiro added the t/bug Something isn't working label Jan 21, 2024
@bcaceiro
Copy link
Author

@jsuarezruiz I will tag you, since you have the AlohaKit Package, and animations, and perhaps you may know how to fix / workaround this issue?

@jsuarezruiz jsuarezruiz added area-animation Animation, Transitions, Transforms platform/android 🤖 labels Jan 22, 2024
@PureWeen PureWeen added the s/needs-repro Attach a solution or code which reproduces the issue label Jan 22, 2024
@ghost
Copy link

ghost commented Jan 22, 2024

Hi @bcaceiro. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@PureWeen
Copy link
Member

@bcaceiro if you use border instead of frame do you get the same issue?

@bcaceiro
Copy link
Author

Hi @PureWeen , yes.
I have tried with the following VisualElements:

  • Frame
  • Border
  • Boxview

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jan 22, 2024
@bcaceiro
Copy link
Author

Do I need to upload a repro project for you to follow? Since I have the relevant code pasted? or it isn't necessary?

@bcaceiro
Copy link
Author

Any news on this subject?

@bcaceiro
Copy link
Author

bcaceiro commented Mar 7, 2024

Up

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 11, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with Visual Studio 17.10 Preview 7.0 (8.0.21&8.0.6). Can repro on android platform with above code.
20044

@bcaceiro
Copy link
Author

The issue still remains in latest release. It prevents to do animations using RotateY since as noticed the visual effect is not the desired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-animation Animation, Transitions, Transforms platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants