언어 설정

Menu
Sites
Language

how to display image name under image

Hi, i was added image using elm_image_add() function, Now i need display image name under image but it not displaying image name it was displaying image only, below i am sharing my code please find error in that code,

Responses

2 댓글
Shaswati Saha

You may use the code snippet below. It works in my case.

Evas_Object *box;
box = elm_box_add(ad->conform);
evas_object_move(box, 20, 120);
evas_object_show(box);
 
char buf[PATH_MAX];
Evas_Object * img = elm_image_add(box);
snprintf(buf, sizeof(buf), "%s/Tizen.png", ICON_DIR);
elm_image_file_set(img, buf, NULL);
evas_object_size_hint_min_set(img, 200, 200);
evas_object_show(img);
elm_box_pack_end(box, img);
 
 
ad->label = elm_label_add(box);
elm_object_text_set(ad->label, "<align=center>Tizen</align>");
evas_object_show(ad->label);
elm_box_pack_end(box, ad->label);
 
NOTE: Please post questions in developer forum so that other developers can save their time by finding similar problems faced previously. You may post your question here in this link.

victory yuvaraju