-- 匹配 数字.数字 或 数字.数字.数字 纯版本号
function checkVer(ver)
  return string.match(ver,"^%d+%.%d+$") or string.match(ver,"^%d+%.%d+%.%d+$")
end

function 水珠动画(view,time)
  time = time or 110
  import "android.animation.ObjectAnimator"
  ObjectAnimator().ofFloat(view,"scaleX",{1.2,.8,1.1,.9,1}).setDuration(time).start()
  ObjectAnimator().ofFloat(view,"scaleY",{1.2,.8,1.1,.9,1}).setDuration(time).start()
end

标签: none

评论已关闭