SwipeSelector
SwipeSelector copied to clipboard
Dynamically add SwipeItems
Suppose we have 10 elements in the array. So is there any way to add 10 SwipeItems with the Java code i.e to dynamically add 10 swipeitems ??
You can achieve this with the following code. Note that lists wont work, only arrays:
SwipeItem[] swipeItems = new SwipeItem[10];
for (int i = 0; i < 10; i++) {
SwipeItem item = new SwipeItem( object , title, desc);
swipeItems[i] = item;
}
swipeSelector.setItems(swipeItems);
it doesn't update the View Title values when called for the 2nd time. Any help?
no update from dpather Question? i have same issue as dpather, i hope there is an answer about this issue.