From: subhransu mohanty Date: Tue, 21 Aug 2018 05:25:50 +0000 (+0900) Subject: lottie/example: updated lottieviewer example. X-Git-Tag: submit/tizen/20180917.042405~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17bc03eb44c1b98681fad411c093bb55c300e5eb;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/example: updated lottieviewer example. Change-Id: I97e30598090f16e4370f1d08dc94315789d82a3d --- diff --git a/example/lottieviewer.cpp b/example/lottieviewer.cpp index 2f46b47..6a01b27 100644 --- a/example/lottieviewer.cpp +++ b/example/lottieviewer.cpp @@ -10,6 +10,7 @@ _win_del_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) { LottieView *view = (LottieView *)data; delete view; + elm_exit(); } static void @@ -40,11 +41,13 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) layout = elm_layout_add(win); evas_object_show(layout); evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_layout_file_set(layout, "layout.edj", "layout"); + std::string edjPath = DEMO_DIR; + edjPath +="layout.edj"; + elm_layout_file_set(layout, edjPath.c_str(), "layout"); elm_win_resize_object_add(win, layout); std::string filePath = DEMO_DIR; - filePath +="data.json"; + filePath +="insta_camera.json"; LottieView *view = new LottieView(evas_object_evas_get(win), renderMode); view->setFilePath(filePath.c_str()); diff --git a/example/layout.edc b/example/resource/layout.edc similarity index 100% rename from example/layout.edc rename to example/resource/layout.edc diff --git a/example/resource/layout.edj b/example/resource/layout.edj new file mode 100644 index 0000000..a8f567d Binary files /dev/null and b/example/resource/layout.edj differ