语言

Menu
Sites
Language
how can i find item_style list?

hi, i attempt to UI working.

 

Elm_Object_Item* elm_naviframe_item_push    (    Evas_Object *     obj,
const char *     title_label,
Evas_Object *     prev_btn,
Evas_Object *     next_btn,
Evas_Object *     content,
const char *     item_style 
)    

 

this function needed item_style parameter.

but i can't find item_style list in tizen developer forum.

someone help me!

 

查看选择的答案

响应

4 回复
Mark as answer
pius lee

See this page and search Genlist Styles.

https://developer.tizen.org/development/guides/native-application/ui/ui-control/widget-preferences-0

Style Sample Text part Swallow part Notes
default elm.text elm.swallow.icon: for the icon on the left.

elm.swallow.end: for the icon on the right.

 
default_style elm.text elm.swallow.icon: for the icon on the left.

elm.swallow.end: for the icon on the right.

 
double_label elm.text: for the main text.

elm.text.sub: for the sub text.

elm.swallow.icon: for the icon on the left.

elm.swallow.end: for the icon on the right.

 
end_icon elm.text elm.swallow.icon  
full   elm.swallow.content The swallow part is the full size of the item. There is no padding in the item.
group_index elm.text elm.swallow.icon: for the icon on the left.

elm.swallow.end: for the icon on the right.

 
one_icon elm.text elm.swallow.icon  
message elm.text: for the text on the top.

elm.title.1: for the text in the middle.

elm.title.2: for the text on the bottom.

   
sunghoon cho

답변 감사합니다

혹시 여기에 있는 스타일 대신

스타일을 커스텀해서 넣거나, 기존 스타일에 색상만 변경해서 사용하는 방법은 없을까요?

pius lee

You can make new style for genlist item but it's not easy.

If you want just change color of small part of genlist item, you must write every layout part and event scripts in genlist style.

https://review.tizen.org/git/?p=framework/uifw/efl-theme-tizen.git;a=blob;f=2.3-mobile/widgets/genlist.edc;h=e65612c30ae11707e4debe32223d7db9b7fd94c7;hb=b9a5bc0d3dd96ddee2a2218713e74dc433cf7594

This url is tizen 2.3 genlist edc files for item style. especially genlist is most complex module in elementary widgets.

I think If you want somthing new but simple design, try "full style" and insert your layout into elm.swallow.content.

But If you think about performance or design code that easy to maintain, you should write item style eventually.

In that situation, You could use elm_theme_extension_add() or elm_layout_file_set() and elm_object_theme_set().

 

https://developer.tizen.org/community/code-snippet/native-code-snippet/popup-alpha-background.?tab=my

It's my snippet for alpha popup, it implement new style for popup, if you want make new style then refer it.

 

Again making new style for genlist is very tough job. be careful your condition.

Alex Dem

Hi, fyi:
There is Tizen native project->Sample->Native App-> UI Controls(elementary) sample application is in IDE which could be useful (genlist example, etc).
Alexey.