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

Issues with RotateTo animation #5

Open
CallMeAreks opened this issue Sep 25, 2017 · 3 comments
Open

Issues with RotateTo animation #5

CallMeAreks opened this issue Sep 25, 2017 · 3 comments

Comments

@CallMeAreks
Copy link

When I configure a simple rotation animation like:

btn.RotateTo(360, 2000)

The animation appears completely different as expected, in a normal Button it rotates as expected. Any ideas why this could be happening? I've only tested it so far in Android 7 on a real device.

@wilsonvargas
Copy link
Owner

Do you have any screenshot to show this issue?

@CallMeAreks
Copy link
Author

CallMeAreks commented Sep 26, 2017

https://imgur.com/a/UXag1

The square is a standard Button.

XAML:

      <local:CircleButton x:Name="BtnArmAway"
           Grid.Row="0"
   		Grid.Column="0"
           Icon="ic_lock"
           FontSize="40"
           HeightRequest="100"
           WidthRequest="100"
           TextColor="White"
           BackgroundColor="#117CC0"
           Clicked="OnActionClicked">
       </local:CircleButton>

       <Button x:Name="BtnArmStay"
           Grid.Row="0"
   		Grid.Column="1"
           
           FontSize="40"
           HeightRequest="100"
           WidthRequest="100"
   		TextColor="White"
   		BackgroundColor="#0BAFB8"
           Clicked="OnActionClicked">
       </Button>

Animation code:

  await btn.RotateTo(360, 2000);
  btn.RotateTo(0, 0);

@CallMeAreks
Copy link
Author

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants