Titanium Window Animations
In Android, Titanium windows can be heavyweight or lightweight:
Heavyweight Window Transitions in AndroidHeavyweight windows are their own Android Activity.
The only way to animate the opening of an Activity in Android is to apply an animation resource to it. Passing a Titanium.UI.Animation object as a parameter to open will have no effect if the window being opened is heavyweight and thus opens its own Activity.
Instead, in the parameter dictionary you pass to open, you should set the activityEnterAnimation and activityExitAnimation keys to animation resources.
The activityEnterAnimationshould be set to the animation you want to run on the new window (activity)
activityExitAnimationshould be set to the animation you want to run on the window (activity) that you are leaving as you open the new heavyweight window above it.
|Sample For Window Animation|
You can also create Custom animation for Window.
Custom animation For Titanium window :
Follow Below Steps :
- Create your own animation resource XML files.see "View Animation" in Android's Resources documentation.
- After creating an Animation resource file, you can place it under
platform/android/res/animin your Titanium project folder and it will be packaged in your app's APK and then available via Titanium.App.Android.R.
Custom Window animation
- Here is the my Animation file :