Languages

Menu
Sites
Language
tizen 2.3 image with content

how to implement  the image with content page in tizen 2.3..

 

Responses

4 Replies
Alex Ashirov

Hi,

Could you please describe your requirements in more details? What do exactly you want to implement? How should the image with content look like?

venkadesh P

I need to display the content below the image. Image should be appear in top and the image description will be below the image.

ezhilarasan b

 

hi venki,

 i suggest to refer the below link

i had clear the same issue in this link

https://developer.tizen.org/documentation/dev-guide/2.3.0?redirect=https%3A//developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/cover_page.htm

Alex Ashirov

Hi,
It seems that you need to pack your image and label into container widget (e.g. Box):
    Evas_Object *vbox;
    vbox = elm_box_add(ad->conform);
    elm_object_content_set(ad->conform, vbox);

    /* Icon*/
    Evas_Object *ic = elm_icon_add(vbox);
    elm_image_file_set(ic, "path/to/image.png", NULL);
    evas_object_size_hint_min_set(ic, 128, 128);
    elm_box_pack_end(vbox, ic);
    evas_object_show(ic);

    /* Label*/
    ad->label = elm_label_add(vbox);
    elm_object_text_set(ad->label, "Hello EFL");
    evas_object_size_hint_weight_set(ad->label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_box_pack_end(vbox, ad->label);
    evas_object_show(ad->label);

    evas_object_show(vbox);