Exemple #1
0
 /// <summary>
 /// 自动刷新数据检测(自动开启动画效果)
 /// </summary>
 public void AutoUpdateData()
 {
     //基于动画刷新数据(空实现也是可以刷新数据的, 记得在prepareAnimal中关闭接下来的动画效果就可以, 就不会产生帧动画引起的卡顿))
     if (!isNotAllowShowAnimalion && animalion != null)
     {
         animalion.IsPrepareAnimaled = true;
     }
     //数据的自动刷新通知
     if (OnNotifyDataModelListChageEvent != null)
     {
         adapter.setIndex(-1);
         adapter.setData(OnNotifyDataModelListChageEvent());
         //重定位位置
         adapter.setBasePostitionRect(adapter.PosRectData);
         InvalidateView();
     }
 }