- app: android mobile
- sdk 3.1.2
- os: osx mavericks
- studio Titanium Studio, build: 3.1.3.201309132423
- output: Android emulator WXGA800 7in tablet
I have a simple 3-tab tabgroup that works as intended on iOS. However, when the app launches in Android, I see the home window briefly, but then it's covered over by the opening tabgroup. Once startup completes, I just see the tabgroup and a black screen where the window should be. The remaining two tabs display their child windows as intended.
index.js
$.index.open();index.xml
<Alloy> <TabGroup> <Require src="homeView"/> <Require src="venue"/> <Require src="cuisine"/> </TabGroup> </Alloy>homeView.js
function openView(childView) { if (childView) { controller = Alloy.createController(childView); $.homeTab.open(controller.getView()); } } $.homeButtonGrid.init({ buttons : [{ id : 'register', title : "Register", backgroundColor : "#009900", backgroundSelectedColor : "#006b00", click : function(e) { openView('registerView'); } }, { id : 'login', title : "Login", backgroundColor : "#ff0000", backgroundSelectedColor : "#990000", click : function(e) { openView('loginView'); } }], buttonWidth : Alloy.isTablet ? 200 : 150, buttonHeight : Alloy.isTablet ? 200 : 75 }); $.homeView.open();homeView.xml
<Alloy> <Tab id="homeTab" title="Home"> <Window id="homeView"> <ScrollView class="container" id="homeNav"> <Require src="header" type="view" /> <ImageView id="logo" /> <Widget id="homeButtonGrid" src="com.appcelerator.buttongrid"/> </ScrollView> </Window> </Tab> </Alloy>Anyone else have this experience? I have no idea how to troubleshoot such a problem. My adroid sdk knowledge is very limited. Here is the code involved in startup.