Hey there,
(SKD: 3.1.0.GA / Android device testing LG optimus L5 )
ive got the following problem: Ive got a menu in a lightweight window so that i can animate it (gMail for android style) but when i open a couple of windows and close them and open some more and then "toggle" the menu, the menu isnt on top, so..... i am not seeing it.
this is my index.xml
<Alloy> <!-- load menu --> <Window id="menu" height="Ti.UI.FILL" width="320dip" top="49dip" left="-320dip" zIndex="100" backgroundColor="transparent" > <View id="menuBackground" opacity="0.7" width="320dip" height="Ti.UI.FILL"></View> <WebView id="menuView" url="/html/menu.html" disableBounce="true" height="Ti.UI.FILL" left="0dip" width="267dip" zIndex="2"></WebView> </Window> </Alloy>as you can see only the menu is present all the other windows are opened trough my controller shown below
exports.openPage = function(controller, animated, open){ // new window Alloy.Globals.windows.push(controller); var view = controller.getView(); // open if( controller.__views.scrollView.track !== false ){ Ti.API.log('droid open page'); // dont set fullscreen, navbarhidden, model or windowsoftinput mode it will make the view heavy view.setFullscreen(false); view.setNavBarHidden(true); // http://developer.android.com/reference/android/R.anim.html view.open({ activityEnterAnimation: Ti.Android.R.anim.fade_in, activityExitAnimation: Ti.Android.R.anim.fade_out }); } // create crumb Alloy.Globals.crumbLib.crumb(controller.__views.crumb, controller.__views.scrollView); var activity = Ti.Android.currentActivity; // close item when back is pressed view.addEventListener('androidback', function(e) { if(Alloy.Globals.menu.left == "0dip"){ exports.toggle('left', false); }else{ if(Alloy.Globals.windows.length > 1){ exports.closePage(); }else{ activity.finish(); } } }); };ive removed some iOS code because the problem only exists on android (as usual)
someone a idea?
Thanks!!