About API for animation

About API for animation

BY 15 Jul 2015 Native Application Development

Hello, dear.

 

Recently, I’m making animation  when app was launched.

I want to stop the animation after  rotation, once.

But, this animation by my code is working continuosly.

I wonder if I change the property of animation’s repeatable such as once or repeatedly,

below is mine.

If you know how to get it, please let me know.

Thank you for your advice.

Bye.

 

 Evas_Object *loadingImg;
 char buf[PATH_MAX];
 
 loadingImg = elm_image_add(grid);
 app_get_resource(“images/loading.gif”, buf, (int)PATH_MAX);
 elm_image_file_set(loadingImg, buf, NULL);
 
 evas_object_size_hint_min_set(loadingImg, 64, 64);
 elm_image_resizable_set(loadingImg, EINA_TRUE, EINA_TRUE);
 
 if (elm_image_animated_available_get(loadingImg))
 {

 dlog_print(DLOG_INFO, TAG, “elm_image_animated_available_get )”);
  elm_image_animated_set(loadingImg, true);
  elm_image_animated_play_set(loadingImg, true);
 }
 
 evas_object_show(loadingImg);

 

Written by