wilsonvargas / ButtonCirclePlugin

Circle Buttons with icon for your Xamarin.Forms Applications
MIT License
96 stars 18 forks source link

Issues with RotateTo animation #5

Open CallMeAreks opened 7 years ago

CallMeAreks commented 7 years ago

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 commented 7 years ago

Do you have any screenshot to show this issue?

CallMeAreks commented 7 years ago

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 commented 7 years ago

Any ideas?