Hey... i made a app in both ios and android....the view on the IOS is perfect but in android you cant see tge view...im using common js module..can i make a app that looks good in all android devices?? How can i fix the view to make it look good in android???thanks
2 Answers
In line 3 of view.js, Ti.UI.Android.createView({ doesn't exist. Try Ti.UI.createView instead.
Though I'm not sure how that would have worked in iOS.
You are using
createWindow({url: })and for this you are creating multiple contexts. It is adviced that you refactor it asvar myUI = require('ui.js') var oWindow = myUI.createACustomWindow1(params)
where inui.jsyou would effectively havefunction createACustomWindow1(params) { var oWin = Ti.UI.createWindow(params) // add your settings and stuff here } exports.createACustomWindow1 = createACustomWindow1
Why is there a
Ti.UI.Android.createView? I believe this is a chubby finger issue :PAndroid and iOS handle differently resources. Try refering to the full path just in case: '/src/cfg/img/myimage.png'
Your Answer
Think you can help? Login to answer this question!