언어 설정

Menu
Sites
Language
GroupListView AddElement and Add Group

Hi! :D Please tell me how to add groups and items when you've run the application. I just initialize the elements of the group and compile the program. And how to add, for example, with the button handler can not understand. Tell me just what classes or functions to use.

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 댓글
Alex Dem
Hi, To increase your GroupsList with additional groups just perform next steps: 1. add groupsCount as yourClass member and modify: yourClass::GetGroupCount(void) { return groupsCount; } 2. set first value of groupsCount before GroupedListView creation 3. add OnActionPerformed on appropriate button click: groupsCount++; __pGroupedListView->UpdateList(); 4. modify GetItemCount and CreateItem for new group accordingly. p.s. to decrease your groups amount you could use the same way : groupsCount--; __pGroupedListView->UpdateList(); Alexey.
katpaga.a
Hi, From the Application in OnActionPerformed() you can add the following code to add or remove items on Button Click To Add the Group , you can use the below API RefreshList(2, -1, LIST_REFRESH_TYPE_ITEM_ADD) // this adds Group 2 to the list To Add Item to the Group RefreshList(2, 0, LIST_REFRESH_TYPE_ITEM_ADD) // this adds an item to Group2 at index 0 Similarly for Remove RefreshList(2, -1, LIST_REFRESH_TYPE_ITEM_REMOVE) // this removes Group 2 to the list RefreshList(2, 0, LIST_REFRESH_TYPE_ITEM_REMOVE) // this removes an item from Group2 at index 0 Rgrds Kats.