There are two ways to output SVG files. One way is to use the VECTOR
part of EDC and the other is to use elm_animation_view
(tizen 5.5 or higher).
Refer to this
https://docs.tizen.org/application/native/api/mobile/5.5/group__Elm__Animation__View.html
[edc]
Make a SWALLOW
part
collections {
group { name: "main";
parts {
part {
name: "svgfile";
type: SWALLOW;
}
}
}
}
[c code]
char buf[255];
sprintf(buf, /*Resource PATH*/);
Evas_Object *anim = elm_animation_view_add(layout);
elm_animation_view_file_set(anim, buf, NULL);
evas_object_size_hint_weight_set(anim, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(anim, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_part_content_set(layout, "svgfile", anim);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…