本文介绍了将闪烁边框应用于 appcelerator 中的 tableview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 appcelerator 有疑问.有没有人知道如何在 appcelerator.table 视图中应用闪烁的边框?我对 tableview 应用了边框颜色,但我需要用其他颜色闪烁它.任何帮助将不胜感激.谢谢.

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.

推荐答案

尝试使用 javascript setInterval.

try using javascript setInterval.

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

首先在 tableView 中设置一个 borderColor,然后用 setInterval() 将它与其他颜色交互.将时间(以毫秒为单位)设置为您希望它首先闪烁的时间.

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.

这篇关于将闪烁边框应用于 appcelerator 中的 tableview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 13:50