Hi, All
Please help me to check my code. I cant see the list item on UI, what's wrong in my code? Thanks!
I have a main_box as the main view, and add a table & list as its children, but I just see the table on UI.
static void create_main_view(appdata_s *ad) { Evas_Object *main_scroller, *input_field_table; /* Naviframe */ ad->nf = elm_naviframe_add(ad->conform); evas_object_size_hint_weight_set(ad->nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_object_content_set(ad->conform, ad->nf); evas_object_show(ad->nf); main_scroller = elm_scroller_add(ad->nf); elm_scroller_bounce_set(main_scroller, EINA_FALSE, EINA_TRUE); evas_object_size_hint_weight_set(main_scroller, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(main_scroller, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(main_scroller); ad->main_box = elm_box_add(main_scroller); elm_box_align_set(ad->main_box, 0, 0); evas_object_size_hint_weight_set(ad->main_box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ad->main_box, EVAS_HINT_FILL, EVAS_HINT_FILL);////// evas_object_show(ad->main_box); elm_box_padding_set(ad->main_box, ELM_SCALE_SIZE(5), ELM_SCALE_SIZE(5)); input_field_table = create_search_input_field_table(ad); evas_object_show(input_field_table); elm_box_pack_end(ad->main_box, input_field_table); ad->list = elm_list_add(ad->main_box); elm_list_mode_set(ad->list, ELM_LIST_COMPRESS); //evas_object_smart_callback_add(ad->list, "selected", list_selected_cb, NULL); elm_list_item_append(ad->list, "Alexander Holmes", NULL, NULL, item_selected_cb, "Alexander"); elm_list_go(ad->list); evas_object_show(ad->list); elm_box_pack_end(ad->main_box, ad->list); elm_object_content_set(main_scroller, ad->main_box); ad->nf_it = elm_naviframe_item_push(ad->nf, "Search Friends", NULL, NULL, main_scroller, NULL); elm_naviframe_item_pop_cb_set(ad->nf_it, naviframe_pop_cb, ad); }