Languages

Menu
Sites
Language
GENLIST 문의

GENLIST를 이용해서 위 그림과 같이 만드려고 합니다.

GENLIST ITEM 배경에 이미지나 색을 넣고 싶은데 방법을 찾을 수가 없네요.

1text.1icon으로 아이콘은 넣을 수 있는데 아이템별로 배경을 넣는 방법은 잘 모르겠습니다.

아이템별로 배경 넣는 방법과 동적으로 아이템별 이미지를 변경하는 방법이 있을까요?

 

그리고, 

GENLIST를 스크롤할때 중앙에 놓여져 있는 아이템의 순번을 가져올 수 있는 방법도 문의 드립니다.

특정 아이템을 선택할 때가 아닌 스크롤 할 때 입니다.

 

답변 부탁 드립니다.

View Selected Answer

Responses

6 Replies
oh

알려주신 링크를 보았지만

아이템 별로 배경색이나 이미지를 바꾸는 방법은 찾을 수가 없습니다.

 

GENLIST를 스크롤할때 중앙에 놓여져 있는 아이템의 순번을 가져올 수 있는 방법도 나와 있지는 않습니다.

 

방법을 꼭 찾아야 하는데 어디에서도 찾을 수가 없습니다.

도와주세요.

 

Yasin Ali

Could you please post some portion of your code to analyze in detail. Or any code stuffs you sketched to do

those functionalities within your app.

MyungSeok Oh

개발하다가 코드가 오류나서 막힌 것이 아니고,

tizen 에서 제공하는 GENLIST에서

style을 1icon,1text로 사용했을 때

아이템별로 배경이미지나 배경색을 바꾸는 api를 발견할 수 없어서 문의 드리는 겁니다.

처음 글에 올린 이미지에 나와있는대로

1icon은 붉은색 원이고

1text는 "TEXT2"인데

둘을 조합시킨 아이템의 배경이미지를 넣고 싶은데 API에 대한 설명이 어디에도 없어서 문의 드리는 것입니다.

해당 API에 대해 알려주시기 바랍니다.

Mark as answer
Yasin Ali

I think you are looking for EDC programming techniques.
You can generate custom style for your application and apply
those style in development code. See below link for EDC programming:
1. https://developer.tizen.org/dev-guide/2.4/org.tizen.ui.practices/html/native/efl/edje_intro_n.htm
 

Also see "Choosing Another Item Style to Add or Remove Parts" of this link
https://developer.tizen.org/dev-guide/2.3.1/org.tizen.tutorials/html/native/ui/genlist_tutorial_wn.htm#item_style
 

Hope it will help.

oh

답변 감사합니다.

알려주신 링크를 이용해 구현해봐야겠습니다.