将闪烁边框应用于appcelerator中的tableview [英] Apply Blinking border to a tableview in appcelerator

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

问题描述

我对appcelerator有疑问。是否有任何机构知道如何将闪烁边框应用于appcelerator中的表格视图。我将一个边框颜色应用于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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆