Lightweight window animation in Titanium for Android -
i'm trying follow guides window animation android in appcelerator titanium, none of them mentions lightweight vs heavyweight windows.
in case, simplest example doesn't work:
// in mainwindow do: var wininfoview = ti.ui.createwindow({ title : "info", url : 'infoview.js', // notice don't set window fullscreen or modal property window remains lightweight }); wininfoview.open({ animated : true });
neither more complicated one:
// in mainwindow do: var wininfoview = ti.ui.createwindow({ title : "info", url : 'infoview.js', // notice don't set window fullscreen or modal property window remains lightweight }); var slideleft = ti.ui.createanimation(); slideleft.left = 0; slideleft.duration = 300; wininfoview.open(slideleft);
so, possible animate opening of lightweight window? how?
as explained @ docs : http://docs.appcelerator.com/titanium/latest/#!/api/titanium.ui.window
be sure had add code tiapp.xml, can using lightwindow in android platform
<property name="ti.android.uselegacywindow" type="bool">true</property>
this code work me :
var menuwindow = ti.ui.createwindow({ top:0, left:0, width:150 }); menuwindow.open({ activityenteranimation: ti.android.r.anim.slide_in_left }); menuwindow.add(something);
Comments
Post a Comment