Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Scale To property doesn't worke properly in xamarin.android

$
0
0

Hi everyone, I am using 'ScaleTo' property for showing little animation in the screen, It work's greatly in xamarin.Ios but in android not works good. What I am tried is I have taking two images and each 30000 sec I am replace with other image.

Here is the sample code:

 Private async void SampleAnimation()
 {
     TestImage.Source = "ImageOne.png";
     await TestImage.ScaleTo(1.1, 3000, Easing.Linear);
     await TestImage.ScaleTo(1, 2);

     TestImage.Source = "Imagetwo.png";
     await TestImage.ScaleTo(1.1, 3000, Easing.Linear);
     await TestImage.ScaleTo(1, 2);
     RepeatLoop();
  }

  private async void RepeatLoop()
  {
     await SampleAnimation();
  }

In my xaml page image is added and in behind code load background image method is called in constructor. What my problem is after completion of first image animation, fliping the screen with white, white screen is appeared little amount of time between image inserting from imageone to imagetwo but it work's in ios without any problem, Only I am getting issue in andorid. Please suggest any idea upon this.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>