Xamarin Android:缩放动画并不流畅

时间:2016-10-24 13:17:22

标签: android animation xamarin xamarin.android

我做了一个新的Xamarin项目,我开始使用Android UI实现。在我的屏幕上,我显示两个textEdit和一个imageView。这张图片是一颗心,我添加了一个动画来击败他。所以,这是我对这个动画的XML描述,在" beat.xml"档案:

$string = "<p><b>Lorem Ipsum</b> is simply dummy text of the printing and typesetting industry.Tom's farm. 12th century.</p>";
$string = strip_tags($string);
$string = preg_replace("/\s/", "", $string);
$character_count = strlen($string);

这就是我开始它的方式,在我的视图中:

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:fillAfter="true" >
  <scale
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:duration="100"
      android:fromXScale="0.90"
      android:fromYScale="0.90"
      android:pivotX="50%"
      android:pivotY="50%"
      android:toXScale="0.95"
      android:toYScale="0.95"
      android:repeatMode="reverse"
      android:repeatCount="infinite">
  </scale>
</set>

动画显示但根本不流畅而且不规律!我现在禁用所有其他电话和我的项目,它只是一个带有这个动画的屏幕,即使在非常好的智能手机(HTC 10,三星Galaxy S6)上也不顺畅。有什么提示吗?

提前致谢,

塞德里克

0 个答案:

没有答案
相关问题