Languages

Menu
Sites
Language
genlist 에서의 drawer issue

안녕하세요...

 

오늘은 drawer 에 대해 문의드리려고 글을 남깁니다.  ㅜ.ㅜ

상단 title 영역에 왼쪽에는 drawer를 , 오른쪽에는 아이콘 버튼을 넣어서 구현하려고 합니다.

그런데 아래와 같이 코드를 작성했더니 ,

title 바에  왼쪽, 오른쪽 아이콘은 디스플레이되는데요,

왼쪽 drawer 버튼을 클릭시 drawer가 디스플레이 되지 않고 있습니다 .

 

elm_naviframe_item_push(...) 함수의 5번째 인자에 genlist를 넣으면 drawer가 동작되지 않고

grid를 넣으면 genlist가 나타나지 않습니다... ( 아래 화살표 부분)

뭐가 잘못된건지 모르겠어여 ...

 

 grid = elm_grid_add(ad->nf);
 evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 elm_win_resize_object_add(ad->nf, grid);
 evas_object_show(grid);
 

 /* List */ 
 genlist = elm_genlist_add(grid);
 elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);

 profile_view_data *view_data = calloc(1, sizeof(profile_view_data));
 view_data->win = appdata->win;
 view_data->navi_frame = appdata->nf;
 view_data->layout= appdata->layout;
 view_data->genlist = genlist;


 elm_genlist_item_append(genlist, &itc_name, view_data, NULL, ELM_GENLIST_ITEM_NONE, NULL, view_data);
 elm_genlist_item_append(genlist, &itc_gender, view_data, NULL, ELM_GENLIST_ITEM_NONE, NULL, view_data);
 elm_genlist_item_append(genlist, &itc_birth, view_data, NULL, ELM_GENLIST_ITEM_NONE, NULL, view_data);

 evas_object_smart_callback_add(genlist, "selected", genlist_selected_cb, view_data);
 dlog_print(DLOG_ERROR, LOG_TAG, "create_profile_ui" );
 evas_object_show(genlist);


 // Left Drawer
 panel = create_panel(genlist);
 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
 elm_object_part_content_set(genlist, "elm.swallow.left", panel);
 elm_grid_pack(grid, panel, 0, 0, screen_width / 2, screen_height / 4);
 
 nf_it = elm_naviframe_item_push(nf, "Personal Information", NULL, NULL, genlist, NULL);  

<---------------   //If you change the genlist as grid , phone can't display the genlist as bg.
 
 elm_naviframe_item_pop_cb_set(nf_it, naviframe_pop_cb, view_data->win);
 

 // Tile buttons
 title_left_btn = elm_button_add(nf);
 elm_object_style_set(title_left_btn, "naviframe/drawers");
 evas_object_smart_callback_add(title_left_btn, "clicked", left_btn_cb, panel);
 elm_object_item_part_content_set(nf_it, "title_left_btn", title_left_btn);

 

 

Responses

1 Replies
colin Rao

Hi,

You are in wrong way, as I know the genlis don't has such "elm.swallow.left" part. And as your sample code, seems the Email UI sample application can help you. Suggest you to check the similar implement in this sample project. File -> New Tizen Native Project -> Sample -> Native UI App -> Email UI sample application.