언어 설정

Menu
Sites
Language
Getting the item name of listview on checked

Hai all,

I have created a list view of some items and when i will check the item ,checked item name should be displayed inside OnListViewItemStateChanged method

can any one give the idea how to get the checked item name inside onlistviewitemstatechanged method

 


 

Responses

5 댓글
Alex Ashirov

Hi,

Sorry. Could you please explain what is "item name"?

P puvvada

Hai alex,

Item names are list of Installed applications

Alex Ashirov

Hi,

Please see the following topic:

https://developer.tizen.org/forums/native-application-development/api-get-list-all-installed-apps?langredirect=1

P puvvada

hai alex

By referring the above url ,i maintain a list of installed apps  with check boxes in listview and my doubt is when the user checks the particular installed app item in the listview, particular installed appid is store in the database and when the user unchecks ,it should be deleted from the database

how to get the particular checked item in OnListViewItemStateChanged method of listview

can u give idea on this

Alex Dem

Hi,
Incoming param 'status' of OnListViewItemStateChanged for List with checkbox items will have value : LIST_ITEM_STATUS_CHECKED/LIST_ITEM_STATUS_UNCHECKED
So to refresh desired item you could use:
if(status==LIST_ITEM_STATUS_CHECKED)
    {
         ...
       __pListView->RefreshList(index,LIST_REFRESH_TYPE_ITEM_MODIFY);
    }
    if(status==LIST_ITEM_STATUS_UNCHECKED)
    {
         ...
       __pListView->RefreshList(index,LIST_REFRESH_TYPE_ITEM_MODIFY);
    }

Do you mean this?
Alexey.