This code works fine on the iPhone but does not work on Android. Unable to use the drop down list. I have tested it on many different web pages with the same results.
Titanium Developer 1.2.1 Titanium SDK 1.2.0 and 1.1.2 Android 2.1 and 2.0.1
// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000');
// create tab group var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var wv = Titanium.UI.createWebView({
url:'http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option',
backgroundColor:'#fff'
});
var win = Titanium.UI.createWindow({
title:'DropDownTest',
backgroundColor:'#fff'
});
win.add(wv);
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win
});
tabGroup.addTab(tab1);
// open tab group tabGroup.open();
3 Answers
Thanks for the report, I was able to reproduce this locally.. it looks like it might be a focus problem of some kind. I've opened a bug for it here: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/757-html-select-doesnt-work-in-android-webview
Any updates on this? This seems like a very basic feature which will be used really often ...
Any updates on this? This seems like a very basic feature which will be used really often ...
Your Answer
Think you can help? Login to answer this question!