语言

Menu
Sites
Language
bottom button issue

Hi,

I tried to add bottom button to genlist on wearable device (Galaxy Watch) but it doesn't work.

Code:

    Evas_Object * button ;

    button = elm_button_add(genlist);
    elm_object_style_set(button, "bottom");
    elm_object_text_set(button, "OK");
    evas_object_smart_callback_add(button, "clicked", _app_button_bottom_clicked_cb, data);
    elm_object_part_content_set(genlist, "swallow.genlist.button", button);
    evas_object_show(button);

Button is not shown on the view.

Genlist is added to naviframe. 

Probably I use wrong content part or need extra layout to add genlist and button separately.

However, I want to make it as simple as possible. It is just a bottom button.

 

 

响应

1 回复
Slawek Kowalski

I did it using simple edc file. Maybe there is a simple way but didn't find it.