在Titanium SDK中重新创建此动画 [英] Recreating this animation in Titanium SDK

查看:143
本文介绍了在Titanium SDK中重新创建此动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前在Xcode中开发我的应用程序,但决定转移到Titanium以允许Android开发。

I was previously developing my application in Xcode but decided to move over to Titanium to allow for Android development.

我还习惯使用Titanium,所以在尝试重写我的应用时遇到了一些问题。例如:我将如何在Titanium中重新创建此动画?

I'm still getting used to Titanium so I'm running into some problems when trying to rewrite my app. For instance: how would I go about recreating this animation in Titanium?

基本上我有UIView包含一个MKMapVIew,一个UITableview和一个在它们之间切换的按钮。非常感谢任何帮助!

Basically I have UIView that contains a MKMapVIew, a UITableview and a button that toggle between them. Any help is greatly appreciated!

http:// www。 screenr.com/2kts

推荐答案

您可以使用此代码翻转ios和android中的窗口。

You can use this code to flip window in ios and android both.

创建两个动画对象

var anim_minimize = Titanium.UI.createAnimation({width:0,duration:500});
var anim_maximize = Titanium.UI.createAnimation({width:320,duration:500});

按钮点击动画TabGroup将产生与FLIP相同的效果。

and animate TabGroup on button click will create same effect as FLIP.

所以

tabGroup.animate(anim_minimize);

setTimeout(function(){

tabGroup.animate(anim_maximize);

},500);

尝试此代码。这将在iOS和Android中生成与翻转动画相同的效果。

Try this code.This will generate same effect as flip animation both in iOS and android.

我希望这对我们有所帮助。

I hope this will help us.

这篇关于在Titanium SDK中重新创建此动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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