【发布时间】:2016-03-07 13:56:59
【问题描述】:
我正在尝试为 listview item 子项的 backgroundColor 属性设置动画。
这是代码
var itemToUpdate = myListView.getSections();
itemToUpdate = itemToUpdate[0].getItemAt(myPos);
//itemToUpdate.child_to_update.backgroundColor = myColor; //this works , but without animation
itemToUpdate.child_to_update.animate({
backgroundColor : myColor,
duration : 450
});
myListView.sections[0].updateItemAt(myPos , itemToUpdate);
【问题讨论】:
-
请尝试将您的问题表述为一个问题,并确保您的代码是完整的。
catToUpdate未定义,例如 -
对不起,catToUpdate -> itemToUpdate
标签: ios listview appcelerator listviewitem appcelerator-titanium