Languages

Menu
Sites
Language
Customized List Tizen Native

Hello Everyone,

I am facing a problem from last two weeks related to the List with Events,

basically my requirement is to create a list that having a image button at the end of each item ,

and when i click the particular item image changes to the other icon, I tried various code tweaks but i think those are not the solution to my problem

Here I'm sharing image that shows, what type of list I want :

View Selected Answer

Responses

4 Replies
Yasin Ali

Hi,

Could you please share some of your code.
However you may try with this code and associated callbacks.
https://developer.tizen.org/ko/community/code-snippet/native-code-snippet/create-simple-list-string-array?langredirect=1

Hope it will help you.

Dinal Jivani

Thanks Yasin Ali,

but that won't helped at any point , its simple List created by a string array.

I had created above one using Genlist and added a image in "elm.swallow.end" part using Evas_Object array,

and on Click of item i will Change image on Evas_Object array [Selected_Index], 

it changes the image but when I scroll the Genlist it replace the new image with old one. 

Dinal Jivani

If anyone not able to answer the above requirement , 

Then Can anyone tell me how to update Genlist without Moving Genlist to its Top,

i.e. : If I am on Last item and I want to reload the List without moving it to top, Then how should I work for that

Mark as answer
Dinal Jivani

Finally got the solution to update the selected list item without recreating the Genlist,

I had used the elm_genlist_item_update() callback, that will update the List item that you passed as parameter in elm_genlist_item_update(it);

This callback updates an item by calling all the item class functions again to get the content, text, and states. Use this when the original item data has changed and the changes are desired to reflect to the List Item.

Thank You, Dinal Jivani