Languages

Menu
Sites
Language
How to create a custom group for genlist in edc file

Hi,

Please tell me how to create a custom group for genlist in .edc file

e.g. 

For default it is

                              group { name: "elm/genlist/item/default/default";

what will be the name for custom?

Responses

3 Replies
colin Rao

you can name is what you want. like "customer_genlist"

 

Vikram

f.y.i

edje: https://docs.enlightenment.org/stable/efl/edcref.html

customize widget: https://developer.tizen.org/documentation/guides/native-application/ui/ui-control/widget-preferences#customize

Nikhil Kumar

Hi,

I created genlist and added it to the grid.

ad->genlist = elm_genlist_add(ad->grid);

........

........

elm_grid_pack(ad->grid, ad->genlist, 0, 5, 30, 95);

 

Now in the .edc file I have craeted a group custom (group { name: "elm/genlist/item/custom/default";)and kept the code same as default group(just to try).

In .c file I have added the code below.

elm_theme_extension_add(NULL, "./custom_genlist.edj");

itp->item_style = "custom";

After adding the above, I can only see the white background as if the white .png is set.

Tried modifying various color components and images fields but all went in vain.

Can anyone guide what may be the issue?