Apply Blinking border to a tableview in appcelerator

雨燕双飞 提交于 2019-12-22 01:23:57

问题


I have a doubt in appcelerator. Does any body know how to apply a blinking border to a table view in appcelerator. I applied a border color to tableview, but i need to blinking it with other color. Any help will be deeply appreciated. Thank you.


回答1:


try using javascript setInterval.

setInterval(function() {
    if (table.borderColor == '#F00') {
        table.borderColor = '#0F0';
    }
    else {
        table.borderColor = '#F00';
    }
}, 500);

First set a borderColor in tableView and interchenge it with other color with setInterval(). set the time in milisecond as how first you want it to blink.



来源:https://stackoverflow.com/questions/35123808/apply-blinking-border-to-a-tableview-in-appcelerator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!