Apply Blinking border to a tableview in appcelerat

2020-08-08 08:25发布

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条回答
The star\"
2楼-- · 2020-08-08 08:50

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.

查看更多
登录 后发表回答