Label position example doesn’t work

Label position example doesn’t work

BY 31 Dec 2015 Native Application Development

Following the “Guide to Developing Tizen Native Application” PDF

The section “Changing the Position of a Label Using Absolute Coordinates” says to change:

elm_object_text_set(ad->label, "Hello World");
evas_object_size_hint_weight_set(ad->label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_content_set(ad->conform, ad->label);

to:

elm_object_text_set(ad->label, "Hello World");
evas_object_move(ad->label, 100, 200);
evas_object_resize(ad->label, 400, 100);
evas_object_show(ad->label);

Except this doesn’t work on Gear S2 and the emulator. You just end up with a blank screen. I’ve tried playing around with the coordinate values too, incase I was pushing it off-screen.

It also doesn’t explain why we’re no longer calling elm_object_content_set…

Thanks.

Written by