Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Problem with animating view on Android

$
0
0

It seems there are problems with animating view on Android, at least to me, could anyone check it out?

var a = Ti.UI.createAnimation({
    width: 100,
    height: 200,
    duration: 300,
});
 
var button1 = Ti.UI.createButton({title: "button1"});
var button2 = Ti.UI.createButton({title: "button2"});
 
button1.animate(a); // this worked, the button's size changed
 
a.transform = Ti.UI.create2DMatrix().rotate(90);
button2.animate(a); // only the orientation of button2 changed, the size is not neither animated nor changed
Is it a bug or am I missing something?

On iOS, both animation worked fine.

-Titanium 3.1.0, Alloy 1.1.0 -Target platform: Android 2.3.3 and above


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>