-->

Apply Blinking border to a tableview in appcelerat

2020-08-08 08:14发布

问题:

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.